Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Web page does not display special characters.

Robert A ScheckleMar 28 2012 — edited Apr 21 2012
I have the following environment:
Ubuntu 10.04 LTS - the Lucid Lynx
PHP Version 5.3.2
Apache/2.2.14
Database: XE 10.2.0.1
OCI8

I have confirmed that the data in the database is correct by selecting from both SQL Plus and Oracle SQL Developer.

Scenario 1:
/etc/php5/cli/php.ini => default_charset = "UTF-8"
/etc/php5/apache2/php.ini => default_charset = "UTF-8"
/etc/apache2/apache2.conf => AddDefaultCharset UTF-8
/etc/environment => NLS_LANG=".AL32UTF8" echo $NLS_LANG is correct for all users.

The web page displays the data OK but with out the special characters.
Göldner is displayed as Goldner.

If I do an insert from the web page Göldner becomes G¿¿ldner.

Scenario 2:
Same as 1 with the following added.
/etc/apache2/envvars => NLS_LANG=".AL32UTF8"

The web page displays the data as Göldner and G¿¿ldner.
If I do an insert from the web page the data is inserted correctly.

I am at my wits end, I have used the following resources in an attempt to resolve this:
2 Day Plus PHP Developer Guide
TheUnderground_PHP_and_ORACLE_manual.pdf
globalizing-oracle-php-applications-131996.pdf
google.

Does anyone have any idea where my problem could be?
Regards;
Robert
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2012
Added on Mar 28 2012
5 comments
1,269 views