Re: Convert unicode escape sequences to unicode in a file

2011-01-11 Thread Jeremy
On Tuesday, January 11, 2011 3:36:26 PM UTC-7, Alex wrote: > > Are you _sure_ that your file contains the characters '\', 'u', '0', > '0', 'e' and '9'? I expect that actually your file contains a byte > with value 0xe9 and you have inspected the file using Python, which > has printed the byte usi

Re: Convert unicode escape sequences to unicode in a file

2011-01-11 Thread Alex Willmer
On Jan 11, 8:53 pm, Jeremy wrote: > I have a file that has unicode escape sequences, i.e., > > J\u00e9r\u00f4me > > and I want to replace all of them in a file and write the results to a new > file.  The simple script I've created is copied below.  However, I am getting > the following error: >