Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: utf8 "\xD0" does not map to Unicode at /path/comparebin.pl line line_number, <STDIN> line line_number

by Anonymous Monk
on Nov 18, 2014 at 14:57 UTC ( [id://1107578]=note: print w/replies, xml ) Need Help??


in reply to utf8 "\xD0" does not map to Unicode at /path/comparebin.pl line line_number, <STDIN> line line_number

Seems like some of the file names are corrupt.
You can check it with
find /YOUR/PATH -type f -name '18.19.2012*' | perl -ne 'printf "%vx\n" +, $_'
Russian characters are two-byte and all start with d0 or d1, IIRC. Space is 20, - is 2d, newline is a.
  • Comment on Re: utf8 "\xD0" does not map to Unicode at /path/comparebin.pl line line_number, <STDIN> line line_number
  • Download Code

Replies are listed 'Best First'.
Re^2: utf8 "\xD0" does not map to Unicode at /path/comparebin.pl line line_number, <STDIN> line line_number
by ikegami (Patriarch) on Nov 18, 2014 at 17:27 UTC

    Adding -l to perl's command line options will print the file name without the trailing .a.

    Use printf "%v02x\n" if you want to pad each number to two digits.

    find /YOUR/PATH -type f -name '18.19.2012*' \ | perl -nle'printf "%v02x\n", $_'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found