On Sat, 13 Jul 2013, Bodo Eggert wrote: > On Fri, 12 Jul 2013, Lukas wrote: >> we are using Perl 5.10, Mason 1.42 and having an issues with UTF-8 encoded >> strings. Recently we are accepting new customers from different countries >> >> Is there any solution for this problem? > > I', using this apache config file: > > PerlSetVar MasonPreamble "use utf8;"
"use utf8" only affects the source code, not all the IO paths which are the real problem. In a complicated web environment it is very difficult to get them all to encode properly to override perl's assumption that everything is latin1 unless proven otherwise. perl 8 had "use encoding 'utf8'" which was almost a solution, but it was not respected by PerlIO routines when processing stdout. Perl 10 has a new attempt to "just assume everything is utf8 and stop mucking with my data". It's called "use utf8::all". Give that a try, and let know if it works. ~ John Williams ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users