[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #6450 [Metrics Utilities]: Task #6329 Python script can't encode unicode characters
#6450: Task #6329 Python script can't encode unicode characters
-------------------------------+--------------------------------------------
Reporter: karsten | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Metrics Utilities | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------------+--------------------------------------------
Comment(by atagar):
Hi Karsten. Unicode is a bit of a pita in python 2.x. Options are...
- Make sure to use unicode strings rather than regular (ascii) strings.
Unicode strings start with a 'u', for instance...
{{{
>>> u"ããããã"
u'\u3053\u3093\u306b\u3061\u306f'
}}}
- Switch to python 3.x. One of the big changes in the upgrade was that
strings are now unicode (like java).
Hope that helps. -Damian
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6450#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs