I wrote an ajax service in perl which needs to be able to send a JSON message to a variety of browsers.
I have found that if JSON messages contain anything other than 7-bit ascii, i.e. no special characters, IE8 will fail to eval(). A particular character that IE chokes on is é or egrav in HTML. I had originally written the service in ASP. The tool I used to generate the JSON from ASP would interpret é into \u00E9. It seems like that approach made both Firefox and IE happy. Is there an existing perl module that will convert special characters into the \uXXXX form?
Thanks! MarlinIn reply to Handling special characters in JSON by mcm1303
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |