Forum OpenACS Q&A: Re: Problem with Weblogger in 5.1: ï¾ appearing in entries.

Collapse
Posted by Jeff Lu on
It seems the problem is utf-8 encoding.
Try to enable that in your config tcl. What version of aol are you using?

Anyways try adding these to config.tcl if you are on aol4.

ns_param HackContentType 1
ns_param DefaultCharset utf-8
ns_param HttpOpenCharset utf-8
ns_param OutputCharset utf-8
ns_param URLCharset utf-8

Otherwise you can go back to aol3.3ad13, that should also fix the problem c",)

--Jeff

Jeff,

Thanks, that solved the problem!

--cro

Well, changing to UTF-8 actually masks the problem.

I have an RSS feed for this blog.  Visiting the RSS feed generates the following:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'http://ncbt.org/family/abbyblog/rss/rss.xml';. Line 20, Position 25

Now this is actually an IE error.  I can visit the page in Mozilla, but Mozilla shows many of the spaces in the blog as a question mark inside a triangle.  If I look at the rss.xml file directly, a lot of spaces have been replaced by hex character A0, which on Windows is a space of some kind.  These characters exist in the database as well.

So this seems to be coming directly from the form post.  Is something odd going on with IE?  Should the content type be hacked to iso-8859-1 instead?