Re: Specials chars replaced by strange chars
I havent looked into it, but a band-aid would be something like this
$s = strtr($s,"fF"," rR");
This will repalce chr's one for one, the first chr in string2 will replace
all occurances of the first chr of string1
in the exmaple above, all f will become r and all F will become R
just an idea
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Nicolas Nguyen" <petitpopo@wana doo.fr> wrote in message
news:c2ta6k$3ua $1@news-reader3.wanadoo .fr...[color=blue]
> Hey, i got a small problem in PHP.
> When i try to get some data from a file (fopen), it replaces special chars
> by weird chars.
>
> Example :
> Français instead of Français.
> thème instead of thême...
>
> Anyone got an idea about how to correct this ?
> THanks !!
>
>[/color]
Specials chars replaced by strange chars
Collapse
This topic is closed.
X
X
-
Guest replied -
Guest repliedRe: Specials chars replaced by strange chars
Nicolas Nguyen wrote:[color=blue]
> Hey, i got a small problem in PHP.
> When i try to get some data from a file (fopen), it replaces special chars
> by weird chars.
>
> Example :
> Français instead of Français.
> thème instead of thême...
>
> Anyone got an idea about how to correct this ?[/color]
utf8_decode()
worked here ... but changed "thème" to "thème"
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Leave a comment:
-
Specials chars replaced by strange chars
Hey, i got a small problem in PHP.
When i try to get some data from a file (fopen), it replaces special chars
by weird chars.
Example :
Français instead of Français.
thème instead of thême...
Anyone got an idea about how to correct this ?
THanks !!
Tags: None
Leave a comment: