![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: Windows NTFS UTF-16LE File-Operationsby repellent (Priest) |
on Feb 21, 2012 at 00:29 UTC ( #955194=note: print w/replies, xml ) | Need Help?? |
You need to encode back to octets the return of Win32::GetLongPathName(), because say is printing out octets. Win32::FindFile is most likely doing that for you already. Which encoding you choose should depend on what your console expects (to be able to redisplay the characters). Try:
If 'UTF-8' doesn't work out, choose another encoding that works well with your console. Bear in mind that the UTF-8 encoding may be fine as-is, and that the console just needs better fonts (which is not your case, because I infer that you can see the characters displayed properly using Win32::FindFile).
In Section
Seekers of Perl Wisdom
|
|