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 that fits perfectly in this [...]
Tags: ajax, i18n, iso 8859-1, jquery, json, json_encode, PHP, utf-8
Comments: 6
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 the JavaScript [...]
Tags: ajax, i18n, iso 8859-1, jquery, json, json_encode, PHP, utf-8
Comments: 1
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 con una [...]
Tags: collations, iso 8859-1, latin1, mysql, utf-8
Comments: -
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.
Tags: APC, i18n, l10n, PHP, utf-8, Zend Framework
Comments: -
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 con tildes [...]
Tags: i18n, iso 8859-1, l10n, PHP, utf-8
Comments: 8