>- see footer for list info -< I would have though all you need to do is find a list of Unicode escape sequences and make a simple conversion script.
E.g. --Unicodes.txt -- \u0022,\u0027,\u005C ",',\ -- end -- <cfsavecontent var="unicodesfile"><cfinclude template="unicodes.txt"></cfsavecontent> <cfset unicodes = ListToArray(ListGetAt(unicodesfile,1,chr(10)))> <cfset chars = ListToArray(ListGetAt(unicodesfile,2,chr(10)))> <cfloop from="1" to="#ArrayLen(unicodes)#" index="x"> <cfset ReplaceNoCase(JsonPacket, unicodes[x], chars[x], "ALL")> </cfloop> -- Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Fernandez Sent: 03 May 2007 11:09 To: [email protected] Subject: [CF-Dev] does anyone know how to convert javascript unicode encodedstrings eg "\uXXXX" to "standard" html entities in coldfusion >- see footer for list info -< hi, does anyone know how to convert javascript encoded unicode strings to normal html entities in coldfusion, as im receiving a json packet and the strings in it are all encoded "\uXXXX" style the json decoder script im using doesnt convert these strings into coldfusion/html friendly strings, im sure there must be a simple way of converting them, ive searched the net but couldnt find an answer, cheers, steve _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
