Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Can Perl convert ISO-? | WIN-? | MAC-? to UTF-8?

by taint (Chaplain)
on May 23, 2013 at 06:21 UTC ( #1034877=note: print w/ replies, xml ) Need Help??


in reply to Re: Can Perl convert ISO-? | WIN-? | MAC-? to UTF-8?
in thread Can Perl convert ISO-? | WIN-? | MAC-? to UTF-8?

Greetings choroba, and thank you for your reply.
My question is:
If I have a mass of (textual) files, that have mixed encoding(s) && line-endings,
aside from ICONV(1) | FILE(1), how can I unify them -- convert them all to
UTF-8 | UTF8?
Given what I do know about Perl, I should be able to slurp them, process
the contents, and spit them out as "unified" -- see UTF8 text files, all having the same line-endings.
Given that the files I'd be slurping, are of mixed "types", is there any way to process
them, so they all end up the same "type" when they're done?

I hope I was clearer || more concise this time. :)

Thanks again, for your response.

--chris

#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;


Comment on Re^2: Can Perl convert ISO-? | WIN-? | MAC-? to UTF-8?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-07-26 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls