Doc #66808 [Opn->Ver]: missing documentation on charset shift-jis
| From: | cmb@php.net | Date: | Fri, 16 Mar 2018 16:17:59 +0000 |
| Subject: | Doc #66808 [Opn->Ver]: missing documentation on charset shift-jis | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15536@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66808&edit=1
ID: 66808
Updated by: cmb@php.net
Reported by: divinity76 at gmail dot com
Summary: missing documentation on charset shift-jis
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: mbstring related
PHP Version: 5.4.25
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2014-03-02 07:20:58] 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'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66808&edit=1