From:             jonr at light dot is
Operating system: Windows XP
PHP version:      5.2.6
PHP Bug Type:     Oracle related
Bug description:  Some UTF8 characters from database show up wrong

Description:
------------
PHP displays some UTF-8 strings wrongly. E.g. "ÁÉÝÚÓÞÆÐ" is rendered as
"ÁÿÝÿÿÿÿÐ". 

Reproduce code:
---------------
First Oracle db insert:
insert into temp values (convert('ÁÉÝÚÓÞÆÐ','UTF8'));

$pdo = new PDO('oci:dbname=//localhost/ora','user','pass');
$sth = $pdo->prepare("select * from temp");
$sth->execute();
$sth->fetchAll(PDO::FETCH_ASSOC);
echo $sth[0]['TEXT'];





Expected result:
----------------
ÁÉÝÚÓÞÆÐ


Actual result:
--------------
ÁÿÝÿÿÿÿÐ

-- 
Edit bug report at http://bugs.php.net/?id=46119&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46119&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46119&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46119&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46119&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46119&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46119&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46119&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46119&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46119&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46119&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46119&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46119&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46119&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46119&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46119&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46119&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46119&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46119&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46119&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46119&r=mysqlcfg

Reply via email to