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

Accent problem

1 view
Skip to first unread message

Steel

unread,
Jan 23, 2010, 4:07:18 AM1/23/10
to
Hi at all

In a mysql table I have many words (in several languages) with accent (like
fi�, st�va )

If I try to find a word that it contains an accent mysql not found it.

I am sure that into php query the word is exact For es:

SELECT *FROM words WHERE w=' fi�'

We had the same problem in phase of reading of the accented words whose
accents came transformed in a strange interrogative point and we solved this
problem with htmlentities ()

Please how can I do because query search found accented words?

ThanksAccent problem


Jerry Stuckle

unread,
Jan 23, 2010, 7:45:48 AM1/23/10
to

This isn't a PHP question. You need to be asking in a MySQL newsgroup -
such as comp.databases.mysql.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================

Richard

unread,
Jan 23, 2010, 12:03:55 PM1/23/10
to

"Steel" <st...@nonspam.com> wrote in message
news:a%y6n.15130$Ua....@twister2.libero.it...

If you put the data in the db with htmlentities, then you should also
use that in the query.
R.


Michael Fesser

unread,
Jan 23, 2010, 3:01:58 PM1/23/10
to
.oO(Richard)

Of course the better way would be to fix the encoding problem and change
the columns to UTF-8 where necessary.

Micha

Richard

unread,
Jan 23, 2010, 8:45:07 PM1/23/10
to

"Michael Fesser" <net...@gmx.de> wrote in message
news:g9lml5t1gk1acq3el...@mfesser.de...

Probably, yes. This is the quick (and maybe dirty) way.
Depending on the situation, this may or may not be the best solution.

R.


"Álvaro G. Vicario"

unread,
Jan 25, 2010, 3:22:42 AM1/25/10
to
El 23/01/2010 10:07, Steel escribi�:

Do your table and PHP script use the same character set? Do the column
values have leading spaces?


--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

0 new messages