Re: [Tutor] print the hole unicode list

2008-08-28 Thread Mark Tolonen
"Yang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I am trying to print out the hole unicode char list in window! form 0-65535. I use the winxp in simple chinese LOCAL! the ascii form 0-127 and CJK chars form 0X4E00-0X9FA4 can be print out! Other ucode chars case th

Re: [Tutor] print the hole unicode list

2008-08-28 Thread Kent Johnson
On Wed, Aug 27, 2008 at 9:59 PM, Yang <[EMAIL PROTECTED]> wrote: > Hello, >I am trying to print out the hole unicode char list in window! form > 0-65535. > I use the winxp in simple chinese LOCAL! the ascii form 0-127 and CJK chars > form > 0X4E00-0X9FA4 can be print out! Other ucode chars ca

Re: [Tutor] print the hole unicode list

2008-08-28 Thread W W
Well, on my linux box (ubuntu) it had no problem with this: for i in range(0, 65536): uchar=unicode("\u%04X"%i,"unicode-escape") print uchar So my guess is you're missing some character in your set, but I'm not sure. HTH -Wayne On Wed, Aug 27, 2008 at 8:59 PM, Yang <[EMAIL PROTECTED]> w

[Tutor] print the hole unicode list

2008-08-27 Thread Yang
Hello, I am trying to print out the hole unicode char list in window! form 0-65535. I use the winxp in simple chinese LOCAL! the ascii form 0-127 and CJK chars form 0X4E00-0X9FA4 can be print out! Other ucode chars case this error "UnicodeEncodeError: 'gbk' codec can't encode character u'\u9fa6