Re: [Zope] tal:content="structure... and unicode... How to get it work in Zope 2.10.4 ?

2007-07-25 Thread Andreas Jung



--On 25. Juli 2007 14:34:49 +0200 Andreas Elvers <[EMAIL PROTECTED]> wrote:


Hi,

I'm having a hard time with page templates using unicode.

Here is a simple example:

- create a page template called dejavu
Encoding is utf-8. Check also your browser character encoding to be set
to unicode as well.

- put this into the page template.:
IMPORTANT: Since this discussion is in ASCII, I can't write the correct
deja vu string here.
When testing please use the correct spelling. See
http://en.wikipedia.org/wiki/Dejavu :-)



When I test this template i will not get deja vu but instead garbled
characters for e and a.

Why is this ?




Likely because you're using the u'...' notation. However I have no clue why
do you want to work with unicode strings this way...this looks somewhat
artificial (independent of the behavior).

-aj



pgpNKRkDLhrIW.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] tal:content="structure... and unicode... How to get it work in Zope 2.10.4 ?

2007-07-25 Thread Andreas Jung



--On 25. Juli 2007 14:34:49 +0200 Andreas Elvers <[EMAIL PROTECTED]> wrote:


Hi,

I'm having a hard time with page templates using unicode.

Here is a simple example:

- create a page template called dejavu
Encoding is utf-8. Check also your browser character encoding to be set
to unicode as well.

- put this into the page template.:
IMPORTANT: Since this discussion is in ASCII, I can't write the correct
deja vu string here.
When testing please use the correct spelling. See
http://en.wikipedia.org/wiki/Dejavu :-)



When I test this template i will not get deja vu but instead garbled
characters for e and a.




Works for me. If you think this is a bug, please file a bugreport including
a unittest that demonstrates the broken behavior.

-aj

pgp1gFhnWGP0u.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] tal:content="structure... and unicode... How to get it work in Zope 2.10.4 ?

2007-07-25 Thread Andreas Elvers

Hi,

I'm having a hard time with page templates using unicode.

Here is a simple example:

- create a page template called dejavu
Encoding is utf-8. Check also your browser character encoding to be set 
to unicode as well.


- put this into the page template.:
IMPORTANT: Since this discussion is in ASCII, I can't write the correct 
deja vu string here.
When testing please use the correct spelling. See 
http://en.wikipedia.org/wiki/Dejavu :-)




When I test this template i will not get deja vu but instead garbled 
characters for e and a.


Why is this ?

Greetings,
- Andreas

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )