You have to encode the text (like with UTF-8), and then set a header...
I think it's:
  Content-type: text/html; charset=UTF-8

(Or whatever character set you're using)

On Thu, 2003-03-13 at 17:06, [EMAIL PROTECTED] wrote:
> Hello, 
> 
> I'm wondering how can i handle unicode in webware.
> In fact i use openTAL as the template system. but 
> when the template contain some latin1 like (�,�) 
> i got a :
>  UnicodeError: ASCII encoding error: ordinal not in range(128)
> on the self.writeln(myTemplate)
> 
> I know i can do something like myTemplate.decode('latin-1'), 
> but if i use that i get some strange output in the browser. 
> 
> In fact i really don't want to use é cause i want 
> to use it in a form textarea. 
> 
> 
> Thanks  
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! 
> Get cracking and register here for some mind boggling fun and 
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to