Req #64477 [Opn->Csd]: Special characters - UTF-8 - Windows - Console
| From: | ab@php.net | Date: | Thu, 21 Mar 2013 15:59:47 +0000 |
| Subject: | Req #64477 [Opn->Csd]: Special characters - UTF-8 - Windows - Console | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177965@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64477&edit=1
ID: 64477
Updated by: ab@php.net
Reported by: faca5 at volja dot net
Summary: Special characters - UTF-8 - Windows - Console
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: Windows
PHP Version: 5.4.13
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
That's clearly not PHP but a terminal issue. On windows its limited to the terminal fonts and
depends also on whether the terminal has the multibyte support. I've saved your snippet as
UTF-8 and was able to see two of that three chars in powershell chcp 65001 on win8, the normal cmd
seems to have no multibyte support. Or maybe you could try to tweak the fonts in the registry, not
sure.
Previous Comments:
------------------------------------------------------------------------
[2013-03-21 12:57:51] faca5 at volja dot net
Description:
------------
Hello.
I have problem with running php script in Windows console. It do not display correct characters!
Same with using "chcp 65001"
Test script:
---------------
<?= "šĞ"; ?>
Expected result:
----------------
šĞ
Actual result:
--------------
iâ?A!â?A3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64477&edit=1