[php-src] Issue #8281: mb_convert_encoding "\" (backslash) and "~" (tilde) convert failed to Shift_JIS

From: Date: Sun, 03 Apr 2022 00:43:10 +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-240646@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8281 Comment Author: youkidearitai Dear, @alexdoward. thank you very much for reply. I know ASCII backslash(0x5C) and tilde(0x7E) is different in JIS X 0201.But most Japanese users 0x5C and 0x7E is not using strict convert to 0x5C to U+00A5 and 0x7E to U+203E. At least, it can be said that there are very few cases where the convert to backslash and tilde is multibyte. [Japanese Wikipedia Yen sign problem section in "現実的解決" (Realistic solution)](https://ja.wikipedia.org/wiki/%E5%86%86%E8%A8%98%E5%8F%B7#%E7%8F%BE%E5%AE%9F%E7%9A%84%E8%A7%A3%E6%B1%BA) explain Realistic solution. > > この問題に対する現実的解決として、ほとんどの環境では日本の円記号はUnicodeのバックスラッシュ > (U+005C) に変換される。 > (As a practical solution to this problem, Japanese yen symbols are converted to Unicode > backslashes (U+005C) in most environments.) Some Japanese see to Yen sign, but code is almost 0x5C. From this, Japanese language is through in general case ASCII and JIS X 0201 to 0x5C and 0x7E as it is. Reference: プログラマのための文字コード入門 (ISBN978-4-7741-4164-0) Page 316 - 318

« previous php.bugs (#240646) next »