Problemas con UTF-8 (Tíldes) SOLUCIONADO

Post Reply
jamartinezu
Znuny newbie
Posts: 67
Joined: 28 Jun 2013, 01:06
Znuny Version: OTRS 5
Real Name: Arturo
Company: Purdy Motor
Contact:

Problemas con UTF-8 (Tíldes) SOLUCIONADO

Post by jamartinezu »

Buenos Días

Quería ver si alguno me puede ayudar.
Tengo el OTRS conectado a mi LDAP, resulta que cuando voy a crear un Ticket el nombre del cliente que se obtiene del LDAP distorsiona los caracteres como la tilde, Ñ
Ejemplo
* Como debería salir: José Arturo Martínez Jiménez
* Como aparece: José Arturo Martínez Jiménez

Versión OTRS: 3.3.13
SO: Windows 7
Last edited by jamartinezu on 23 May 2016, 20:58, edited 1 time in total.
pgmartinez1
Znuny newbie
Posts: 22
Joined: 05 Oct 2015, 16:18
Znuny Version: 5.0.12
Real Name: Pablo Martinez
Company: CONICET

Re: Problemas con UTF-8 (Tíldes)

Post by pgmartinez1 »

Yo lo solucioné agregando esto:
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
a pesar de que el source charset lo tengo en iso-8859-1, al realizar la conversion muestra mal los caracteres, entonces le digo que interprete el sourcecharset como si estuviese en utf-8 y chau problemas.

Code: Select all

$Self->{CustomerUser} = {
        Name => 'AD Backend',
        Module => 'Kernel::System::CustomerUser::LDAP',
        Params => {
            Host => 'Hostname',
            BaseDN => 'dc=domain,dc=local',
            SSCOPE => 'sub',
            UserDN => 'otrs_ldap@domain.local',
            UserPw => 'passwd',

            SourceCharset => 'utf-8',
           DestCharset   => 'utf-8',
Prod > Centos 7.2 / OTRS 5.0.12 / LDAP SSO for customers / CAS SSO for Agents / OCS Integration / PHPFreeChat / Nagios Monitor
Dev > Centos 7.2 / OTRS 5.0.13
jamartinezu
Znuny newbie
Posts: 67
Joined: 28 Jun 2013, 01:06
Znuny Version: OTRS 5
Real Name: Arturo
Company: Purdy Motor
Contact:

Re: Problemas con UTF-8 (Tíldes)

Post by jamartinezu »

No sabes cuanto le agradezco.
Funciona a la perfección amigo.
De verdad muchas gracias
pgmartinez1
Znuny newbie
Posts: 22
Joined: 05 Oct 2015, 16:18
Znuny Version: 5.0.12
Real Name: Pablo Martinez
Company: CONICET

Re: Problemas con UTF-8 (Tíldes)

Post by pgmartinez1 »

No hay de que! para eso es el foro! no te olvides de colocar en el asunto solucionado!
Prod > Centos 7.2 / OTRS 5.0.12 / LDAP SSO for customers / CAS SSO for Agents / OCS Integration / PHPFreeChat / Nagios Monitor
Dev > Centos 7.2 / OTRS 5.0.13
Post Reply