Re: Charset problem / PHP

From: Álvaro G. Vicario <alvaro_NOSPAM_at_demogracia.com>
Date: Wed, 9 Apr 2008 13:43:20 +0200
Message-ID: <ftiaud$v9p$1@huron.algomas.org>


"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().
  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