encoding problem retreving from DB

Juan Manuel Clavero Almirón <[email protected]>
Newsgroups gmane.comp.otrs.devel
Message-ID <4E6C4135180B424CBFC6C6DE9456154A0CB6CD68@SCPDPSEXMB01P.ssib.local>
Hi all,
In our OTRS-3.0 system, the bosses wanted some extra states, so they entered them through the SysAdmin interface… in Spanish, with special characters. Then they asked me to made a modification in AgentTicketZoom that it would show a special box if the state was a specific one, something like an alert. I added these lines to the module and it worked ok:

            $SpecialState = $Self->{StateObject}->StateLookup(
                State => 'pendiente de aprobación',
            );
The file was in UTF-8 without BOM encoding .

Now I’m testing to upgrade the system to OTRS-3.1.5 and I’ve found that the same line fails in the new system:
             [Error][Kernel::System::State::StateLookup][585] No State for pendiente de aprobación found!
It’s obviously an encoding problem.
And it works if a change AgentTicketZoom.pm encoding to ANSI!

Where may be the problem? I think the DB is working in UTF-8

Kind regards,
Juan Clavero Almirón

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.