Page 1 of 1

Special Char in php variable

Posted: Mon Feb 16, 2009 10:54 pm
by Redblob
Hi,

I have two languages on the same site ( English and Italian )
The translations in both languages work well and work well all special character in all area of product data.

The only problem is special char ( like òàèé ) in all words defined in php template files ( all variable defined as string in language definitions )

I have tried to change ISO-3166 definition instead of UTF-8 in index page and I have solved the problem of template but all Currency value ( $£€ ) are changed.
If I use UTF-8 in index.php the currency are OK but the special italian char are displayed as blank box.

What can I try to do ?

thanks

Re: Special Char in php variable

Posted: Tue Feb 24, 2009 12:18 am
by giangel84
Ciao...io ho risolto il problema così:

Ho messo gli accenti dopo la lettera, ad esempio al posto di scrivere è , ho scritto e'

Nelle pagine della lingua l'accento lo devi inserire preceduto da una barra, ovvero \' (che in linguaggio PHP indica che sta per arrivare un carattere speciale...

Re: Special Char in php variable

Posted: Tue Feb 24, 2009 3:29 pm
by Redblob
Hi Giangel84,

Ho risolto anche io il problema in questo modo ( anche perchè non vedevo altra soluzione ).
Il problema rimane per tutti quei caratteri che non sono scomponibili in lettera + accento.
( esempio quelli dell'alfabeto tedesco, francese, danese ..... )

Dovrà puer esserci una soluzione ... no?