473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

accent problem with é è à ù

JB
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
Jul 17 '05 #1
2 14862
JB wrote:
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?


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

My 2 cents
Bruno

Jul 17 '05 #2

"JB" <je*******************@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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: muldoon | last post by:
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the...
3
by: Vittorio | last post by:
Hi, I have one problem ( I am a python beginner) in a cgi: print"""<a href="mailto:%s">""" %(campovalore.encode('iso-8859-1')) print campovalore.encode('iso-8859-1') print """</a>""" ...
3
by: Matthias HALDIMANN | last post by:
My SQL Server 2000 does not use the accent insensitive collation setting (collation containing _AI) in full-text serches: While SELECT * FROM <table> WHERE <column> LIKE '%a%' returns 'Mäuse',...
3
by: Darren Jensen | last post by:
Hi, Does anyone have a function which replaces accent chars from a string with the non-accented equivalent? For example 'hôpital' should return 'hopital'. Thank you in advance.
3
by: Daedalus.OS | last post by:
Hi, I've been asked to transfert a database from a webhoster to another. I think the database is on a windows box but I'm not 100% shure. The webhoster says it provides combined hosting on...
0
by: ucasesoftware | last post by:
I send some sms in my Win app. but i have trouble with accent accènts = accAent for example when i receive my sms :( if i request the url directly in IE all accent are fine... so it's this...
1
by: Fabrice | last post by:
Hello, I have encountered a deep problem with accent and I don't understand why. I m preparing a multi-language website. French and English so far. With french, we have accents and ......
0
by: Fabrice | last post by:
Hello, (Alain) Tis is a part of my code to retrieve text from hastable in memory cache, by reading (befor) a resources file. Thanks for your help. /1/ The resources file * I have create a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.