-
Notifications
You must be signed in to change notification settings - Fork 952
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
Bug when outputting special characters to shell #67
Comments
I think this isn't about PySnooper and unicode, it's about your shell not supporting the unicode characters. Please give a full reproduceable example. |
Also, your Python version. |
I had the same problem before in python2.7 before,give a full reproduceable example,let me try it,thanks |
d = "s*&F.。、]}】df" in python2.7,Sometimes format not easy to use than % use % replace format can resolve the problem or use format with unicode characters |
I reject #77. I won't change my string formatting method without proof that it's the cause of the problem. I'm waiting for a full reproducible example. |
you can try it in python2.7,format Imperfect support for character sets。it is the same as 93edf6f |
I think it makes sense to add the |
i'm sorry |
I was able to replicate the problem on my machine, thank you @cc20101001 . I'll give it a think. |
Noticed this error while snooping on a function that handles Unicode strings, pysnooper seems unhappy about the degree symbol here:
File "weather.py", line 390, in graphic_single
'location 1': u"%dºC / %dºF" % (round(data[sol]['max_temp']),
File "/Users/userid/Library/Python/2.7/lib/python/site-packages/pysnooper/tracer.py", line 184, in trace
'{frame.f_lineno:4} {source_line}'.format(**locals()))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xba' in position 33: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: