[Zope] Dealing with non-ASCII strings?

Jean Jordaan jean@upfrontsystems.co.za
Wed, 02 Oct 2002 10:06:26 +0200


Hi there

In the data that we have to work with, there are names in French,
Turkish, German, Greek, etc. A sample string, when printed from Python,
is: 'Rabia-r\xddza Bi\xe7en \xf6grenci Yurdu.G\xf6r\xfckle'
We'd like to store this data in LDAP and in Zope.

Questions:

  - How do we find out what the current encoding of the strings are?
    Guess?

  - Say we decide it's Latin-7. How do we convert from the current
    string to Unicode, taking into account the fact that the source is
    taken to be Latin-7?

  - Do we need to move to Zope 2.6 in order to cope with such strings?

-- 
Jean Jordaan
Upfront Systems                         http://www.upfrontsystems.co.za