Re: [Rest2web-develop] (pretty strange) encoding error with rest2web on a Mac
Brought to you by:
mjfoord
From: G. M. <mi...@us...> - 2008-12-03 09:48:41
|
On 3.12.08, Ben wrote: > > There seems to be still an invalid character in your file. > Yes, it looks like an invalid character, but there are other clues that it's > not > - as Michael pointed out, it was a pb in writing the file, apparently, not > reading it (encoding vs decoding) > - all the files are perfectly processed by rst2html.py > (for i in `ls -1 *.txt` ; do rst2html.py $i > /dev/null ; done) => no > error on stderr > - it simply perfectly works on Linux. Same files, same rest2web archive. You convinced me. Let us assume that there is no "strange" character in the rst input. rst2html works well, so there must be a problem with rest2web: * is your template file UTF-8 clean? * do you use any of the special replacement features of rest2web? * what is the locale when you run rest2web? > I did, big time! and the files are really utf8 > However, do you know how to jump to byte 1665 with any text editor? you might need a binary editor... or read the file into a string and slice [1660:1670]. However, it might be worth to look at around character 1660 in the *exported* latin-1 file. Günter |