google / google/python-fire

BUG: Emoji ❤ as a param will get error in windows cmd shell.

オープン
#172 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
28.2k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

【In macOS System】

I test my emoji_cli in macOS, everything goes well.

But in windows, it's not so lucky.

【Bug】
env: python3 & windows system

In test method, english word or chinese and emoji has no question.

In windows cmd or powershell, english word or chinese word eveything goes well.

But when test Emoji such as ❤, it works bad as following :(

```
> emoji_cli name redheart
key: redheart

> emoji_cli name "中文"
key: 中文

> emoji_cli name "❤"
key: ?
```

What should i do to fix this problem?

I have tried encode, deocode, even chardet,but all failed.

Here is my project: [https://github.com/houbb/emoji-cli](https://github.com/houbb/emoji-cli)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。