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

'charmap' codec can't encode characters in position 10-12: character maps to <undefined> #28

Closed
shahriyardx opened this issue Oct 27, 2020 · 1 comment

Comments

@shahriyardx
Copy link

  File "main.py", line 20, in <module>
    ig.print_data_()
  File "C:\Users\Shahriyar\osi.ig/.lib\api.py", line 112, in print_data_
    extra.banner()
  File "C:\Users\Shahriyar\osi.ig/.lib\api.py", line 46, in banner
    print(f"""{cy}
  File "C:\Users\Shahriyar\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 10-12: character maps to <undefined>
@th3unkn0n
Copy link
Owner

it seems windows cmd error not script
adding .encoding("utf-8") will work but i've used it only in linux so not sure

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

2 participants