[Devel] windows characters (was Re: Accented characters)

Simos Xenitellis simos74 at gmx.net
Thu Sep 22 00:12:53 EST 2005


Luis Villa wrote:
> On 9/19/05, James Ogley <james at usr-local-bin.org> wrote:
>   
>> I've noticed that on Planet SUSE, accented characters (such as umlauted,
>> or using latin style accents) aren't formatted correctly.  An example of
>> this is the most recent entry dated September 18th on the site, posted
>> by Lenz Grimmer, compare it with the version in his actual blog.
>>
>> Is there a way to fix this in either config.ini or my templates?
>>     
>
> Slightly tangentially, short of s/// on a list of the offending crap
> characters before feeding to the templates, is there any *good* way of
> translating crap windows characters into respectable UTF-8? Does
> anyone have a patch to fix this, either the good or bad way? (I could
> have sworn this had been discussed here, but I can't find it
> anywhere.)
>   
As I said before, it's a Web server issue that sets in the HTTP header 
the encoding to iso-8859-1.
You can verify this with the command "wget -S www.planetsuse.org" (look 
for any encoding).
LenZ's feed and also the page are perfectly UTF-8 encoded.

What you need to do is get the Web admin for www.planetsuse.org and ask 
her to override the setting for encoding for the PlanetSuse virtual host 
to either UTF-8 or simply keep it blank.

Then, the page will automatically appear fine! :)

Simos



More information about the Devel mailing list