[Tutor] How can I see properly my korean.
jackup at gmail.com
Thu May 31 12:20:19 CEST 2007
Yes I did
I added the locale code at the top of my python code.
But the korean letter which is in the python dict is displayed raw format (
I can't find any appropriate expression ) such as \x0e\xed\xff
I want to see the korean letters like 라재 라재
On 5/31/07, Alan Gauld <alan.gauld at btinternet.com> wrote:
> >I input the data which is from the database into array.
> > and then I print out the array to the file
> > but the letter I can not figure out.
> >> fileHandle = open (
> >> '/var/chroot/www/htdocs/django/js/model.js',
> >> 'w' )
> >> fileHandle.write( codecs.BOM_UTF8 )
> >> print >> fileHandle, 'var blog = '
> >> print >> fileHandle, blog
> >> fileHandle.close()
> > What I want to do is to see properly the letter not this letter
> > '\xec\x9d'
> > Can anyone who know solution let me know how to do kindly?
> I think you need to set the locale at the top of your python code.
> Alan G.
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor