Pablo Viquez Blog

Mi vida y cosas relacionadas

Skip to: Content | Sidebar | Footer

Category: iso 8859-1

How to use json_encode with ISO-8859-1 data – Part2

31 July, 2009 (12:04) | iso 8859-1, PHP, utf-8, Web Development | By: Pablo Viquez

To continue with the previous post. Problem: Function json_encode does not support ISO-8859-1 encoded data. One solution that I did, in order to preserve the character set was to encode the data before using the json_encode function to use just A-Z, a-z and 0-9 characters, instead of sending text with accents or symbols. One encoding [...]

How to use json_encode with ISO-8859-1 data – Part1

17 July, 2009 (13:51) | debug, iso 8859-1, PHP, utf-8, Web Development | By: Pablo Viquez

Download the demo files While I was looking at some AJAX calls, I started to have a problem, for some reason, when I tried to query a JSON service I did using JQuery, the result was null for some fields. Going a little deeper, I notice that the records from the DB were OK, and [...]