Re: Acentos en tpl

From: Date: Fri, 18 Mar 2011 18:57:02 +0000
Subject: Re: Acentos en tpl
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-311957@lists.php.net to get a copy of this message
Hi everyone First, I'm so sorry to write in spanish , but when I suscribed I didn´t know that was an english list. If I will needs again or to help I will write in english like that. My english is not fluent, sorry again. About this problem, this solucion doesn´t work, but my solucion was in de php code, when I set variable with the list, encode to utf-8 and works. The solucion was SetVariable->('variable',   utf8_encode($valor)); Thanks for your help      Lorenita Ing. Electrónica U. Bosque Ing. de Sistemas U. Bosque Especialista en Telecomunicaciones Móviles U.Distrital --- El vie, 3/18/11, Richard Quadling <rquadling@gmail.com> escribió: De: Richard Quadling <rquadling@gmail.com> Asunto: Re: [PHP] Acentos en tpl A: "Alejandro Michelin Salomon" <amichelins@hotmail.com> Cc: "Lorena Monroy O." <lorenamonroy@yahoo.com>, php-general@lists.php.net Fecha: viernes, 18 de marzo de 2011, 07:36 am 2011/3/18 Alejandro Michelin Salomon <amichelins@hotmail.com>: > Lorena : > > Yo trabajo con idioma portugués y utilizo esto en mi código : > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="pt-br" lang="pt-br"> > <head> >    <meta http-equiv="Content-Encoding" content="gzip" /> >    <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" > /> >    <meta http-equiv="Content-Style-Type" content="text/css" /> >    <meta http-equiv="Content-Script-Type" content="text/javascript" > /> > ... > > Nunca e tenido problemas con caracteres especiales como é o ú. > Y utilizo varios .tpl, deves fijarte en los .tpl para saber qual > Content-Type estan utilizando. > > Otra cosa importante es saber si la información viene de una base de datos, > y si esta utiliza LATIN1 como conjunto > de caracteres o UTF-8. Para hacer las conversiones que fueren precisas > > Alejandro M.S. > > English version: > Lorena : > > I work with portugues and use this in my code : >  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="pt-br" lang="pt-br"> > <head> >    <meta http-equiv="Content-Encoding" content="gzip" /> >    <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" > /> >    <meta http-equiv="Content-Style-Type" content="text/css" /> >    <meta http-equiv="Content-Script-Type" content="text/javascript" > /> > ... > > I never have problems with special characters like é or ú. > I use some .tpl, you have to look at .tpl to know what Content-Type the file > are using. > > Other important thing if to know if the information is coming from the > database, and if is using LATIN1 CHARACTER SET > or UTF-8. To do the conversions that are needed. > > Alejandro M.S. > > > -----Mensagem original----- > De: Lorena Monroy O. [mailto:lorenamonroy@yahoo.com] > Enviada em: quinta-feira, 17 de março de 2011 12:55 > Para: php-general@lists.php.net > Assunto: [PHP] Acentos en tpl > > Hola a todos > Tengo un formulario que tiene dos paneles (.tpl), el cual maneja variables > que vienen de php con la funcion setVariable, pero en el panel del menu me > carga las tildes correctamente y a la derecha me las carga como un rombo con > interrogación. Manejo Firefox y probe cambiando la configuración de > caracteres de UTF-8 a Occidental, pero a la izquierda se ve mal y a la > derecha se ve bien. > Si modifico en el codigo por ó ahi se ve bien, pero en otros combos > no... como puedo hacer que en ese tpl se vea bien sin modificarlo desde el > codigo. > Gracias > >      Lorenita   Ing. Electrónica U. Bosque     Ing. de Sistemas U. Bosque > Especialista en Telecomunicaciones Móviles U.Distrital > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Are you able to zip the 2 templates? I'm guessing your editor is saving one in UTF-8 and the other in the codepage format. From what I understand, it is better to have everything UTF-8. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#311957) next »