I knew all of that already, and that was not what my question asked or what i needed. It did not mention cp437 at all, which is what my left-hand string needed to be encoded as, as vr pointed out in his correct answer here: https://www.perlmonks.org/?node_id=1220300
| [reply] |
?? It didnt seem that way :/
| [reply] |
I need the string as it is represented on the right side in the OP post
Why? Just use the wide interface I mentioned instead
| [reply] |
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.
| [reply] |