good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Encoding problem with function in C libraryby syphilis (Archbishop) |
on Dec 23, 2022 at 00:09 UTC ( [id://11149039]=note: print w/replies, xml ) | Need Help?? |
That works nicely on Windows 10 and 11. But not on Windows 7, where I find that altering the codepage ostensibly succeeds, but in reality takes no effect. Perhaps the explanation for that might be found in one of AM's links. Anyway, I can probably ignore this issue with Windows 7 and earlier. It's unlikely that anyone other than me would ever hit it. ... so unless you've got some other funky Unicode stuff going on, I don't think you'd need to change it back Yes, I think so. It seems that Win32::SetConsoleOutputCP(65001) sets the codepage for the duration of the program and that should generally be fine, whereas chcp 65001 sets it for the duration of the cmd.exe console (and that's not so acceptable). Thanks again for the pointers, guys !! Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|