Replace high-bit characters in file.
Chris Liechti
cliechti at gmx.net
Sun Mar 31 17:11:50 EST 2002
"Mikke M." <plopp at dummyaddress.doh> wrote in
news:M1Kp8.3021$Ow4.4334 at news2.bredband.com:
> I need a script that replaces national characters in a (dBase)file.
>
> The original file is encoded in Latin-1 but I need it to be in CP850
> instead.
you can do that with the unicode support:
>>> unicode("text to convert","latin-1").encode("cp850")
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list