[Rt-devel] [patch] RT (3.8.7) and FCGI > 0.68 and actual utf-8 content

Jason Long jlong at messiah.edu
Tue Jun 29 16:54:50 EDT 2010


Thanks so much! I encountered this problem too, and your patch fixes it for
me.
Jason



On Sun, Apr 4, 2010 at 4:07 PM, S.P.Zeidler <spz at serpens.de> wrote:

> Hi,
>
> perl FCGI 0.69 onwards is more picky about the strings it gets.
> Thus, if you feed it perl strings with utf-8 you get a complaint about
> wide characters in the string.
>
> The following patch takes care of the problem:
> --- ./lib/RT/Interface/Web.pm.orig      2009-12-11 17:27:20.000000000 +0000
> +++ ./lib/RT/Interface/Web.pm
> @@ -88,6 +88,7 @@ sub EscapeUTF8 {
>     $$ref =~ s/\)/&#41;/g;
>     $$ref =~ s/"/&#34;/g;
>     $$ref =~ s/'/&#39;/g;
> +    $$ref = Encode::encode_utf8($$ref);
>  }
>
> best regards,
>        spz
> --
> spz at serpens.de (S.P.Zeidler)
> _______________________________________________
> List info:
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20100629/892a561a/attachment.html>


More information about the rt-devel mailing list