google / google/python-fire

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

Open
#172 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
28.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.