Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accent problem with é è à ù

0 views
Skip to first unread message

JB

unread,
Jan 29, 2004, 5:54:46 AM1/29/04
to
Hi,

I'm having a problem with accent in PHP/HTML.

I have a value stored in a table.
The value is : é è à ù
When I look directly into table via phpmyadmin, the value seems to be
stored correctly.
Yet, when I try to get the value in my php code (mysql_query() ... ),
what I get is totally different for the three lasts characters.

I get the 'é' correctly, but the other characters are transformed into
special characters : a 'c' with a special accent: an inverted ^ ), an
'r' with an accent, and a 'u' with a square on top of it.

I tried to use addslashes() or stripslashes() but it didn't changed
the problem at all.

Does anybody have any idea about what is happening?

Thanks.

JB isnardon

Bruno Desthuilliers

unread,
Jan 29, 2004, 7:11:26 AM1/29/04
to

Probably a problem with character encoding in the html page that
displays the results...

My 2 cents
Bruno

somaBoy MX

unread,
Jan 29, 2004, 7:09:41 AM1/29/04
to

"JB" <jeanbaptis...@yahoo.fr> wrote ...
: I get the 'é' correctly, but the other characters are transformed into

: special characters : a 'c' with a special accent: an inverted ^ ), an
: 'r' with an accent, and a 'u' with a square on top of it.
:
: I tried to use addslashes() or stripslashes() but it didn't changed
: the problem at all.
:
: Does anybody have any idea about what is happening?

Try:

$string = "\* your query result here *\";
echo utf8_encode($string);

It might just do the trick.


.soma


0 new messages