Re: Charset problem / PHP

From: Jens Müller <>
Date: Wed, 09 Apr 2008 14:11:48 +0200
Message-ID: <>

Álvaro G. Vicario schrieb:
> "Jens Müller" <> escribió en el mensaje

>> Oracle SQL developer correctly shows the text, but when I access the DB 
>> with a PHP script, "emil-gött-straße" becomes "emil-gott-stra?e". Is there 
>> a possibility to fix this with a function call or similiar in the PHP 
>> script, without changing the webserver or database setup?

> You have two pure PHP options:
> 1. Convert from DB charset to script charset. Have a look at iconv().

Any hint how to find out the DB charset first?

> 2. Convert to HTML entities. Have a look at htmlentities() with the charset
> parameter.

Well, I already did htmlentities, but without further options ...

Either the abovementioned broken string comes from the DB server, or it is produced by htmlentities ... Received on Wed Apr 09 2008 - 07:11:48 CDT

Original text of this message