[dev] Unicode in Turba, and Data.php - and User Admin

Jan Schneider jan@horde.org
Mon, 19 Nov 2001 13:09:52 +0100


Zitat von Michael Cochrane <mike@graftonhall.co.nz>:

> I've got the Windows address book working how i want and finally delt to
> the
> date field by writing code to divide a value stored in a string in hex by
> an
> integer to get around the 64bit value problem.
> 
> One last problem... what to do with the non ascii characters...
> specifically the
> windows address book is all in unicode, not an issue if on an english
> system
> (just convert ti ascii) but one of my test address books is in japanese,
> i can
> extract the unicode values no worries. At the moment I am outputing them
> as HTML
> codes to display them correctly for testing, but how are we going to
> handle
> these characters in Turba and IMP?

We just started to be aware of any unicode issues. So we don't have any 
direction yet how to handle such things.
But in this special case it not only depends on us how to handle unicode 
but also on the storage backend. I don't think we can rely on them to 
handle unicode entries correctly.

If the data in the windows addressbook is utf-8 I guess the best thing we 
can do now is to use utf8_decode().
 
> Also - un related, but i'm writting an Auth class specifically for
> MDaemon that
> handles add, remove, update users. What should we do about add, update
> fields?
> auth class specific templates? or a more general system for field names,
> types,
> default values?

Don't know what MDaemon is but perhaps you find some hints in 
horde/admin/users.php.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::