[Zope-dev] Character codes

Hannu Krosing hannu@tm.ee
Thu, 11 Nov 1999 20:49:04 +0200


Alexandre Ratti wrote:
> 
> Hello,
> 
> when displaying the raw content of a list with this code:
> 
>    <dtml-call "REQUEST.set('myOptionList',['é', 'à', 'ù', 'è'])">
>    <dtml-var myOptionList>
> 
> (The list values are extended characters for French accented letters. They
> may not display correctly in your mailer.)
> 
> I get this output:
> 
>    ['\351', '\340', '\371', '\350']

I guess it is called iso-8559-1 ?

what you see are octal (NON)ASCII codes for the characters.

The list is composed of 4 one-character strings, each shown as its octal 
code if outside the range 32 <= x < 127

-----------------
Hannu