Re: Unicode error (Long)

Francois Granger <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <a05200f7fbac7f241c408@[192.168.1.20]>
At 15:30 -0700 19/04/2003, in message Re: [pyblosxom-users] Unicode 
error (Long), Ted Leung wrote:
>Francois Granger wrote:
>
>>At 02:15 +0800 20/04/2003, in message Re: [pyblosxom-users] Unicode 
>>error (Long), Wari Wahab wrote:
>>
>>>Francois Granger wrote:
>>>
>>>>  File "./libs/renderers/blosxom.py", line 217, in render
>>>>  self.__outputFlavour(parsevars,'head')
>>>
>>>There's something at your head.html file that causes this to choke.
>>
>>I changed the first ê and the offset of the error change.
>
>This is undoubtedly an encoding problem, then.  I think that the 
>replacer is trying to combine data in two different encodings, but 
>I'm not sure how to fix this.

Trying step by step, I probably cleaned up the head.html file. I will 
now clean the foot.html one.

Since they are XHTML and have a charset tag, they should be imported 
using the charset for the string (in my case utf-8).

A simpler solution would be to systematically import them as utf-8 
without reading the charset, since this cover ascii, iso 8859-1 and 
utf-8.

In the mean time, i'll stick to entities in my files.

-- 
Hofstadter's Law :
It always takes longer than you expect, even when you take into 
account Hofstadter's Law.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.