[Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Katja Süss
SimpleTerm of zope.schema does not allow tokens to be unicode. Why this? 
___

Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Adam Groszer
Hallo Katja,

I would say that's because tokens are used in the widgets for item
identification. Usual business is to utf-8 and base64 encode unicode
tokens.

Monday, January 7, 2008, 5:35:46 PM, you wrote:

KS SimpleTerm of zope.schema does not allow tokens to be unicode. Why this?
KS ___
KS Zope3-users mailing list
KS Zope3-users@zope.org
KS http://mail.zope.org/mailman/listinfo/zope3-users


-- 
Best regards,
 Adam Groszermailto:[EMAIL PROTECTED]
--
Quote of the day:
Not only is there no God, but try getting a plumber on the weekend.  -  Woody 
Allan

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Martijn Pieters
On Jan 7, 2008 5:35 PM, Katja Süss [EMAIL PROTECTED] wrote:
 SimpleTerm of zope.schema does not allow tokens to be unicode. Why this?

Because tokens need to be round-trippable in browsers, without
encountering encoding issues. Tokens are internal values, unique in
the set, whatever they may represent.

-- 
Martijn Pieters
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users