Re: Charset problem / PHP

From: Álvaro G. Vicario <>
Date: Wed, 9 Apr 2008 13:43:20 +0200
Message-ID: <ftiaud$v9p$>

"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().
  2. Convert to HTML entities. Have a look at htmlentities() with the charset parameter.
Received on Wed Apr 09 2008 - 06:43:20 CDT

Original text of this message