Pablo Viquez Blog

Mi vida y cosas relacionadas

Skip to: Content | Sidebar | Footer

Tag: utf-8

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

31 July, 2009 (12:04) | PHP, Web Development, iso 8859-1, utf-8 | 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) | PHP, Web Development, debug, iso 8859-1, utf-8 | 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 [...]

Illegal mix of collations…

14 May, 2009 (22:42) | General, debug, errors, mysql | By: Pablo Viquez

Estaba haciendo unos procedimientos almacenados en MySQL 5 y cuando estaba hanciedo pruebas, me comenzó a dar este error: Script line: 73    Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation ‘=’ Buscando donde estaba el error, me di cuenta que el procedimiento almacenado que estaba probando utiliza un cursor comparando un String de parametro [...]

APC en PHP

23 April, 2009 (15:08) | General | By: Pablo Viquez

APC Rocks! Implemente unas clases para internalización y localización usando Zend Framework y el core que basicamente cargaba y parseaba los diccionarios en XML le hice cache con APC para poder tener una unica instancia por servidor del mismo “objeto” y funciono muy bien. Espero poner la arquitectura que se uso pronto por aqui.

Encoding, UTF-8, ISO 8859-1 y PHP

4 September, 2008 (17:01) | PHP, Web Development | By: Pablo Viquez

Hace unos dias tuve un problema tratando de desplegar tildes en una aplicación, el problema surgió cuando quise hacer que toda la aplicación fuera UTF-8. Es decir, que la DB hablara UTF-8 y las paginas desplegaran UTF-8: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">   Ahora, cuando hice el despliegue en la página, en vez de ver caracteres [...]