Re: mysql_query() problem with special characters
| From: | Gustavo Del Castillo Meza | Date: | Mon, 07 Apr 2003 22:11:43 +0000 |
| Subject: | Re: mysql_query() problem with special characters | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26916@lists.php.net to get a copy of this message | ||
When displaying the data in html use the function htmlspecialchars
http://www.php.net/manual/en/function.htmlspecialchars.php
"Mika Salminen" <mika@salhydro.fi> escribió en el mensaje
news:20030407154331.50694.qmail@pb1.pair.com...
> I have problems with retrieving data from MySQL-database with
> mysql_query-function. Characters with accent ÄÅÖäåö for example don't look
> like they should and if I make queries with string these characters in the
> string I don't get any results altough with mysql default client gives me
> results and everything works fine. The database (MySQL 4.0) is configured
to
> use ISO 8859-1 and default-value for characterset in php.ini (PHP ver 4.3)
> is ISO 8859-1. So what could be wrong ?
>
> -Mika
>
>
>