php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66808 missing documentation on charset shift-jis
Submitted: 2014-03-02 07:20 UTC Modified: 2018-03-16 16:17 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: divinity76 at gmail dot com Assigned:
Status: Verified Package: mbstring related
PHP Version: 5.4.25 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: divinity76 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-03-02 07:20 UTC] divinity76 at gmail dot com
Description:
------------
mb_convert_encoding supports a charset known as "shift-jis", an old japanese character set, but it seems to be undocumented.. also my only test data is a bunch of vulgar japanese text, sorry about that :/ ... i don't understand/write/speak japanese myself

Test script:
---------------
<?php 
$str=base64_decode("g2+DQ4N1g4yBW4NegVuCxZbjgqaCxIKigumOcILwinmCtYLegsiC8YLE");
var_dump(mb_convert_encoding($str,'utf-8','shift-jis'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-16 16:17 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-03-16 16:17 UTC] cmb@php.net
Actually, "shift-jis" is an alias of "SJIS" which is listed on the
"Supported Character Encodings" man page[1].  It's probably a good
idea to list all supported aliases as well.

[1] <http://www.php.net/manual/en/mbstring.supported-encodings.php>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 08:01:28 2024 UTC