php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12187 character like ? or ? are converted to e
Submitted: 2001-07-16 10:36 UTC Modified: 2001-07-16 10:44 UTC
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.6 OS: Linux Redhat
Private report: No CVE-ID: None
 [2001-07-16 10:36 UTC] f dot labanvoye at cg70 dot fr
When i use php (all version) with oci8 version 8.1.7 on linux, all character like ???? etc, are converted. 

script: 
<?

// connection a la base linux
$c = ocilogon("toto","totopass","linux");

$sql = "select * from toto_table where fonction like 'g%'";
$stmt = ociparse($c, $sql );

ociexecute($stmt);

$nb_row = ocifetchstatement($stmt, $result);

echo $nb_row;

for($i=0;$i<$nb_row; $i++)
 echo $result["ID"][$i]."--".$result["FONCTION"][$i]."<br>";
 

?>

Fonction value is "g?n?rique" and appear "generique" on web page.

The same script on windows platform with oci8 8.1.6 works fine. (on the same database all rights).

I need patch rapidly...

Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-16 10:44 UTC] hholzgra@php.net
this is not a php problem but is almost certainly
related to your environment settings, especialy
things like $NLS_LANG

you should ask your question at php-db@lists.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 30 22:01:28 2024 UTC