Re: Oracle10 e PHP

From: Álvaro G. Vicario <alvaro.NOSPAMTHANX_at_demogracia.com>
Date: Fri, 20 Feb 2009 10:22:08 +0100
Message-ID: <gnlso3$6sn$1_at_reader.motzarella.org>


Daniele escribió:
> I have a Oracle 10g Database Server on Suse Linux.
> I want to read records with a PHP script on a Linux Red Hat 9 Server (with
> Apache 2, PHP 5, and OCI8 functions).
>
> But SELECTs of text records that contains non-standard chars return an emtpy
> string.
>
> For non-standard chars I mean quotes or apostrophes like these: ' " "
> instead of: ' "
>
> What do I have do set in my web server?

Quotes are quite standard... Are you dumping the results into HTML without proper escaping?

If you actually meant non-English characters, find the "The Underground PHP and Oracle® Manual" manual and check chapter 15 (Globalization). You basically need to set an env variable in your Red Hat server.

-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Received on Fri Feb 20 2009 - 10:22:08 CET

Original text of this message