Re: Charset problem / PHP

From: Jens Müller <usenet-11-2007_at_tessarakt.de>
Date: Wed, 09 Apr 2008 14:11:48 +0200
Message-ID: <663q3uF2hjk5uU1@mid.individual.net>


Álvaro G. Vicario schrieb:
> "Jens Müller" <usenet-11-2007_at_tessarakt.de> escribió en el mensaje
> news:663o57F2iirkdU1_at_mid.individual.net...

>> 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