IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Use unicode strings instead
The declaration Greg pointed out is only necessary if your *identifiers* need unicode. If all your unicode is safely tucked away inside of strings, use u"Pe\\xf1asco" or u"Pe\\u00f1asco". The u-prefix makes them unicode objects, as opposed to string objects. Almost all builtin and library funcs will handle them properly, including .replace().

[link|http://docs.python.org/lib/typesseq.html|http://docs.python.org/lib/typesseq.html]

[edit: added link to docs]
Collapse Edited by FuManChu Jan. 28, 2005, 01:21:54 AM EST
Use unicode strings instead
The declaration Greg pointed out is only necessary if your *identifiers* need unicode. If all your unicode is safely tucked away inside of strings, use u"Pe\xf1asco" or u"Pe\u00f1asco". The u-prefix makes them unicode objects, as opposed to string objects. Almost all builtin and library funcs will handle them properly, including .replace().
     Foreign Characters in Python source - (ChrisR) - (3)
         Declare Encoding of UTF-8 -NT - (folkert) - (1)
             Got it, thanks. - (ChrisR)
         Use unicode strings instead - (FuManChu)

Did you like my little stink wafties?
60 ms