Siim Märtmaa wrote:
i would like to do this

print u'\u30fa'
ヺ

with a method like this

b = "30fa"
uni = u'\u' + b + '\''

but it prints this

UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in
position 0-1: end of string in escape sequence

so how to concatenate properly to print the character ヺ

I want to do this to print the characters in a loop so that b would change


help (unichr)
Help on built-in function unichr in module __builtin__:

unichr(...)
   unichr(i) -> Unicode character

   Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.




TJG
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to