[tor-bugs] #6450 [Metrics Utilities]: Task #6329 Python script can't encode unicode characters

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Aug 6 09:51:11 UTC 2012


#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 karsten):

 Replying to [comment:2 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...

 See above.  The Python script should be able to handle a UTF-8 encoded
 document that it downloads from Onionoo.

 > - Switch to python 3.x. One of the big changes in the upgrade was that
 strings are now unicode (like java).

 I'd rather want to stick with the Python version supported in Debian
 stable.  Maybe we can work around this encoding problem somehow.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6450#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list