Page 1 of 1
Special character in php
Posted: Wed Sep 29, 2010 11:46 am
by indiavitus
Hi,
I have a string "Genérica", but while reading in php code, it get converted into "GenΘrica".
How can i get the same string i.e. "Genérica".
Please help me out.
Thanks,
Manoj
Re: Special character in php
Posted: Wed Sep 29, 2010 12:12 pm
by McInfo
Use the correct character set.
Re: Special character in php
Posted: Thu Sep 30, 2010 12:14 am
by indiavitus
what do you mean by that.
Re: Special character in php
Posted: Thu Sep 30, 2010 12:26 pm
by McInfo
The cause of this problem is usually that you are trying to decode (read) a string using a different character set than the one it was encoded in.
Re: Special character in php
Posted: Thu Sep 30, 2010 3:47 pm
by DigitalMind
use unicode
Re: Special character in php
Posted: Thu Sep 30, 2010 5:46 pm
by Apollo
indiavitus wrote:I have a string "Genérica",
In what encoding do you have this string?