On Fri, 12 Jul 2013, Lukas wrote:

> Hello everyone,
>
> 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
> that have different letters in the database and standart encoding cannot
> support this. From what Ive read, even if i encode string in one mason
> component to UTF8 as soon as this string is passed to another component it
> is again treated Lating1 event that the string was previously converted to
> UTF8, this is causing huge problems for us. Is there a way how to enforce
> UTF8 for every module? Unfortunately we cannot upgrade to higher versions
> of perl or mason as our app would not work in this environment.
>
> Is there any solution for this problem?

I', using this apache config file:

$ cat /etc/apache2/mods-enabled/perl.conf
<IfModule mod_perl.c>
         PerlModule HTML::Mason::ApacheHandler
         PerlSetVar MasonPreamble "use utf8;"
         <FilesMatch "\.hpl$">
                 SetHandler perl-script
                 PerlHandler HTML::Mason::ApacheHandler
         </FilesMatch>
</IfModule>

HTH

(I'm using ".hpl" for HTML+perl files)

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

Reply via email to