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 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor