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
 [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 Oct 08 02:01:28 2024 UTC