google / google/python-fire

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

Đang mở
#172 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
28.2k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

【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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.