Re: [phpxmlrpc-devel] [Fwd: xmlrpc.inc, problem is UTF-8 string]
Brought to you by:
ggiunta
From: Miles L. <mi...@sp...> - 2002-03-01 10:11:48
|
Would it be necessary and/or acceptable to wrap this in a test for the default encoding?: if($xmlrpc_defencoding == 'UTF-8') { $rs.="<${typ}>" . htmlspecialchars(utf8_encode($val)) . "</${typ}>"; } else { $rs.="<${typ}>" . htmlspecialchars($val) . "</${typ}>"; } Edd Dumbill wrote: > > ------------------------------------------------------------------------ > > Subject: xmlrpc.inc, problem is UTF-8 string > Date: Mon, 25 Feb 2002 00:31:52 +0100 > From: "Mr ROYER" <er...@id...> > Organization: Idée production > To: <ed...@us...> > > Hi, > > I have change a code in line 872: > > case $xmlrpcString: > $rs.="<${typ}>" . htmlspecialchars(utf8_encode($val)). "</${typ}>"; > > I call utf8_encode in this line cause the character in XML format are in > UTF-8 > ==> I had problem with accent (a client in delphi) and now it's work fine > > Thanks for your module :) ==> great thing > Etienne ROYER -- Miles Lott - phpGroupWare http://www.phpgroupware.org |