Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows command line encodings fail #47

Open
fionafibration opened this issue Jan 10, 2019 · 0 comments
Open

Windows command line encodings fail #47

fionafibration opened this issue Jan 10, 2019 · 0 comments

Comments

@fionafibration
Copy link

Windows redirection to a file breaks because of some lack of support for unicode or utf-8 or something

Traceback (most recent call last):
  File "C:\Program Files\Python37\Scripts\mimic-script.py", line 11, in <module>
    load_entry_point('mimic==0.0.1', 'console_scripts', 'mimic')()
  File "C:\Program Files\Python37\lib\site-packages\mimic-0.0.1-py3.7.egg\mimic\__init__.py", line 443, in main
  File "C:\Program Files\Python37\lib\site-packages\mimic-0.0.1-py3.7.egg\mimic\__init__.py", line 311, in pipe_mimic
  File "C:\Program Files\Python37\lib\site-packages\mimic-0.0.1-py3.7.egg\mimic\__init__.py", line 285, in pipe
  File "C:\Program Files\Python37\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2c9f' in position 0: character maps to <undefined>

The error message, is, of course, slightly different every time, because of different homoglyphs, but in general, it consistently fails on windows.

@fionafibration fionafibration changed the title Windows command Windows command line encodings fail Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant