Re: SilvaExternalSources and management_page_charset

Marc Petitmermet <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
On 06. Feb 2007, at 16:16 Uhr, eric casteleijn wrote:

> Reinhard Hess wrote:
>> Dear Silva Developers
>>
>>
>> I have a question in regard to SilvaExternalSources and
>> management_page_charset.
>>
>> In CSVSource.py, management_page_charset is set to utf-8.
>> However, in ExternalSource.py, management_page_charset is set to  
>> iso-8859-1.
>> Is there a hidden logic, why there is a setting to iso-8859-1  
>> instead of
>> utf-8 or is it just a bug?
>
> Neither, actually :) (Or at least I don't think it's a bug, nothing is
> breaking because of it right?)

lots of stuff "broke" when we migrated from silva-1.1.5 to silva-1.5.8.

for new code sources:
the main issues were with the python scripts. e.g.:

    return 'üöäü'

this works (correct display) only when data encoding for the code  
source itself is set to iso-8859-1.

for old code sources:
old scripts are now shown incorrectly because they were encoded utf-8  
but the browser is set to iso-8859-1. but in smi they are shown  
correctly when data encoding remains utf-8.

page templates always work properly regardless of the data encoding  
of the code sources.

outside code sources encoding in zmi is set to iso-8859-1 (at least  
in zope 2.8.8).

there is an inconsistency with the encodings in the zmi and we have  
currently a mix-up of different encodings within code sources.

regards,
marc
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.