Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Special character in file name -- die error messed up

by soonix (Canon)
on May 28, 2020 at 12:30 UTC ( #11117401=note: print w/replies, xml ) Need Help??


in reply to Special character in file name -- die error messed up

This is independent of use utf8;
On my Linux system, I don't have this problem, on Windows I could solve it by switching to Code page 65000 (!)

see https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chcp and/or CPAN module Win32::Codepage

(!) - which is the code page for UTF-7…

Update: I hadn't taken the -C flag into account. With -CS, I also get wrong encoding on Linux. So haj's answer is it.

Update 2:with chcp 65001, it also works with -CS on Windows

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2021-10-25 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?