manni has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks!
At work, we are finally moving to a new (to us) platform. We are going to leave perl 5.8.5 behind us and move our home-grown webapp-framework to 5.10.1. That also means exchanging mod_perl 1 on Apache 1.3 with mod_perl 2 on Apache 2.2. Our initial tests are looking good, but it seems that every utf8 string is broken in pages rendered in the new environment.
Some debugging tells me that my raw strings (which come from a variety of sources) don't have the utf8-flag set. When I run them through Encode::decode_utf8 or utf8::decode, I get broken UTF8. When I do a utf8::upgrade, they come out just fine. Needless to say, that our code base has lots and lots of calls to Encode::decode_utf8.
I've been reading through perldelta and everything referenced there, but I couldn't find anything that would really fit.
Of course, all the CPAN modules we use also get updated to their latest versions, but installing some candidates (HTML::Template, e.g.) on the old test system did not replicate the behavior we are seeing on the new one.
Can anyone help and direct me towards that silver bullet?
Update: solved, see below.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: UTF-8 trouble moving from perl 5.8.5 to 5.10.1
by zentara (Cardinal) on Sep 09, 2011 at 20:03 UTC | |
|
Re: UTF-8 trouble moving from perl 5.8.5 to 5.10.1
by Corion (Patriarch) on Sep 10, 2011 at 07:47 UTC | |
|
Re: UTF-8 trouble moving from perl 5.8.5 to 5.10.1
by moritz (Cardinal) on Sep 11, 2011 at 08:44 UTC | |
by manni (Novice) on Sep 11, 2011 at 15:14 UTC | |
by Anonymous Monk on Sep 11, 2011 at 16:21 UTC |