[imp] Problem with LDAP+IMP (UTF8 and accentuated vowels)

Jan Schneider jan@horde.org
Tue, 11 Dec 2001 13:57:12 +0100


Zitat von Santiago Romero <sromero@servicom2000.com>:

> 
>  Hi!
>  I have a big problem with IMP 2.2.6 and my LDAP server. My
>  LDAP Server (Netscape iPlanet Directory Server 5.0) stores
>  the data on UTF8, and when I search in the LDAP server under
>  the IMP webmail I can't see the accentuated vowels or
>  special ISO-8859-1 spanish characters
> 
>  (áéíóúàèìòùñç)
> 
>  I had the same problem with Oracle but I solved it by adding
>  the following to the stronghold/start-server script:
> 
>  export LANGUAGE=SPANISH
>  export NLS_LANG=SPANISH_SPAIN.WE8ISO8859P15
> 
>  Now the problem is the LDAP. I can insert ldap entries with
>  netscape's console and I read correctly in the same console,
>  but under IMP I read strange characters instead of the
>  latin1 characters. I get Administraci"An instead of Administración.
> 
>  I've tried to hack ldap.search.php3 to call to utf8_decode()
>  over the variable $email[1] but it didn't work.
> 
>  Any idea of how to solve it? It's a big problem for me (that makes
>  the ldap server unusable! :( )

If you have utf capable browsers you can try and change the default charset 
of the imp pages to utf-8 instead iso-8859-1. I'm not sure where to do this 
in imp 2.2 but you should find it with a grep.

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
::::::::::::::::::::::::::::::::::::::::::::::