[Tutor] convert a file from plaintext(Ascii) to unicode? very quick questions
Bob Gailer
bgailer at alum.rpi.edu
Tue Aug 16 03:54:55 CEST 2005
At 06:49 PM 8/15/2005, D. Hartley wrote:
>Hello guys!
>
>Is there a way to convert a file from plaintext(Ascii) to unicode? I
>have found all my notes about moving between hex., int's, chr's,
>ord's, etc, but all of these things were only riddle exercises to me
>and I have a hard time keeping them straight. I'm pretty sure I knew
>the answer to this and now cannot find it anywhere (even googling
>through my old tutor posts!)
>
>Does anyone have a quick answer/pointer?
Try the unicode() built-in function. Read the file into a variable, apply
the unicode() function, write the result.
Bob Gailer
303 442 2625 home
720 938 2625 cell
More information about the Tutor
mailing list