[php-src] Issue #8281: mb_convert_encoding "\" (backslash) and "~" (tilde) convert failed to Shift_JIS
| From: | youkidearitai | Date: | Mon, 04 Apr 2022 10:20:54 +0000 |
| Subject: | [php-src] Issue #8281: mb_convert_encoding "\" (backslash) and "~" (tilde) convert failed to Shift_JIS | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240653@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8281
Comment Author: youkidearitai
@alexdowad , Thanks for reply. I'll answer questions.
Shift_JIS is still used in active use, and a common use case is importing CSV into Excel. Since
Excel could only import CSV with Shift_JIS for a long time, there may still be cases where it is
converted with SJIS.
In other words, mb_convert_encoding is done when downloading and uploading CSV.
Also, Windows uses \0x5C for the directory separator. If convert this, it will not function as a
directory separator.
This conversion of \0x5C and \0x7E can be confusing. In most Japanese character code
implementations, it seems customary to convert \0x5C and \0x7E untouched.
Japanese PHP users may have other opportunities to use Shift_JIS, so I was very interested in
talking about this problem.