php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46119 Some UTF8 characters from database show up wrong
Submitted: 2008-09-18 16:06 UTC Modified: 2016-03-08 01:02 UTC
From: jonr at light dot is Assigned: sixd (profile)
Status: Closed Package: PDO OCI
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jonr at light dot is
New email:
PHP Version: OS:

 

 [2008-09-18 16:06 UTC] jonr at light dot is
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:
--------------
????????

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-18 16:12 UTC] jonr at light dot is
Probably a duplicate:
http://bugs.php.net/bug.php?id=36797
 [2008-09-18 17:15 UTC] jonr at light dot is
Duplicate
 [2016-03-08 01:02 UTC] sixd@php.net
-Package: Oracle related +Package: PDO OCI -Assigned To: +Assigned To: sixd
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 12:01:27 2025 UTC