Re: [PHP] Acentos en tpl

2011-03-19 Thread Richard Quadling
2011/3/18 Lorena Monroy O. lorenamon...@yahoo.com:
 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.

Your english is fine. My spanish is not.

-- 
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



Re: [PHP] Acentos en tpl

2011-03-19 Thread Daniel Brown
2011/3/17 Lorena Monroy O. lorenamon...@yahoo.com:
 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.

Hola, Lorenita;

También ofrecemos una lista de correo en español. Usted puede
encontrar aquí:

http://php.net/mailinglists

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Acentos en tpl

2011-03-18 Thread Richard Quadling
2011/3/17 Lorena Monroy O. lorenamon...@yahoo.com:
 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




Please use English.

But translated by GMail ...

Hi all
I have a form that has two panels (. Tpl) which handles variables that
come setVariable php function, but I panel menu loads correctly and
the right accents to me like a diamond loaded with question marks.
Firefox and probe handling changing the charset of UTF-8 to Western,
but the left is wrong and right is right.
If I edit in the code or there is fine, but in other combos do not ...
as I can do that in the tpl look good without modification from the
code.
Thanks

Electronics Engineer Lorenita U. Systems Engineer Forest U. Mobile
Specialist Forest U. District


Are both TPL files encoded to use UTF-8? PHP will not convert the
encoding of a file automatically.

-- 
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



RES: [PHP] Acentos en tpl

2011-03-18 Thread Alejandro Michelin Salomon
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:lorenamon...@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 oacute; 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



Re: [PHP] Acentos en tpl

2011-03-18 Thread Richard Quadling
2011/3/18 Alejandro Michelin Salomon amichel...@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:lorenamon...@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



[PHP] Acentos en tpl

2011-03-17 Thread Lorena Monroy O.
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 oacute; 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