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

utf-8 support #301

Open
samraki opened this issue May 12, 2020 · 1 comment
Open

utf-8 support #301

samraki opened this issue May 12, 2020 · 1 comment

Comments

@samraki
Copy link

samraki commented May 12, 2020

Hi there
if you try something like this :
ponysay " any non english character like ¯\_(ツ)_/¯ "
you"ll find this error :

Traceback (most recent call last):
  File "/snap/ponysay/42/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/snap/ponysay/42/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/snap/ponysay/42/./bin/ponysay/__main__.py", line 152, in <module>
  File "/snap/ponysay/42/./bin/ponysay/ponysay.py", line 258, in run
  File "/snap/ponysay/42/./bin/ponysay/ponysay.py", line 309, in __run
  File "/snap/ponysay/42/./bin/ponysay/ponysay.py", line 940, in printPony
  File "/snap/ponysay/42/./bin/ponysay/ponysay.py", line 1139, in __printOutput
  File "/snap/ponysay/42/./bin/ponysay/common.py", line 56, in print
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 52-61: surrogates not allowed

thank you and sorry for my bad english

@adasiko
Copy link
Contributor

adasiko commented May 15, 2020

Seems to works now
sudo snap refresh ponysay --channel=edge

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