convert zope objects to unicode
If I would like to hack zope to store all string objects in unicode, where is the best place to do it? I would like to have the incoming string go through unicode(inputstr, encoding) and all outgoing strings go through with outputstring.encode(encoding) However, after looking around the zope source, I can not find where is the appropriate place to do it. Rgs, Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
Hi Sin, see http://dev.zope.org/Wikis/DevSite/Projects/SupportPython21/FrontPage for whats going on at the unicode-sector for zope. IMHO it does not make sense to duplicate effort. Regards Tino --On Donnerstag, 17. Mai 2001 01:27 +0800 Sin Hang Kin <kentsin@macau.ctm.net> wrote:
If I would like to hack zope to store all string objects in unicode, where is the best place to do it?
I would like to have the incoming string go through unicode(inputstr, encoding) and all outgoing strings go through with outputstring.encode(encoding)
However, after looking around the zope source, I can not find where is the appropriate place to do it.
Rgs,
Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Wed, 16 May 2001 21:52:53 +0200, Tino Wildenhain <tino@wildenhain.de> wrote:
Hi Sin,
see http://dev.zope.org/Wikis/DevSite/Projects/SupportPython21/FrontPage
for whats going on at the unicode-sector for zope. IMHO it does not make sense to duplicate effort.
That project aimed at supporting python 2.x, but not exploiting its new features such as unicode. You probably want to look at http://www.zope.org/Members/htrd/wstring, where I have some mature patches to provide exactly what you want, which have been stable for 10 months! It is likely that Zopes standard unicode support, when it arrives, will be based on these patches. (ps, Ill be releasing an updated patch for Zope 2.3.2 in the next few days) Toby Dickenson tdickenson@geminidataloggers.com
participants (3)
-
Sin Hang Kin -
Tino Wildenhain -
Toby Dickenson