[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    [Rt-devel] [patch] RT (3.8.7) and FCGI > 0.68 and actual utf-8
From:       "S.P.Zeidler" <spz () serpens ! de>
Date:       2010-04-04 20:07:06
Message-ID: 20100404200705.GD21112 () serpens ! de
[Download RAW message or body]

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@serpens.de (S.P.Zeidler)
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic