Because that gives me the string on the left side in OP, which is the same as the one in
this code which i wrote on your recommendation.
This byte sequence cannot be converted to UTF-8 displaying japanese characters without first moving through 437, which is what the right hand side gives. Just saying "use the wide interface" is completely useless.
Worst of all:
You somehow managed to miss that i said i'm using Win32::LongPath in the OP post, which already uses the wide interface, AND ALSO the very fact that i JUST gave you code that does EXACTLY what you suggest. Why do you continue to pretend i'm not already using the wide interface. This is extremely rude.
In fact, it seems to me as if you made your recommendation without ever having worked with japanese files encoded as described, which makes your blunt insistence on "use the thing you're already using" even more rude.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.