I know there are modules for UTF-8 conversion to other UTF's and ASCII but I've not come accross one for UTF-16. Your best bet is to check out search.cpan.org and look up UTF and see what you get. Keep us posted!
Hi
I get this log file that is created by Retrospect 6.0 (windows) and
it
seems to be encoded as UTF-16.
when I try to split lines by tabs I get weird results. Is there
anyway to convert the encoding to ASCII in PERL? I can't change this
through the software.
thanx,
-Jose-
I know there are modules for UTF-8 conversion to other UTF's and ASCII but I've not come accross one for UTF-16. Your best bet is to check out search.cpan.org and look up UTF and see what you get. Keep us posted!
Ok,
It seems that perl isn't the problem here. PERL can read the files just fine. I was using ActiveState Komodo 2.3 as my IDE. The output that I was viewing was garbage but when I printed the results to a file instead, it works fine. Komodo just has a problem with UTF-16 encoding (or something) .
I suppose in general with IDE's, if you are getting wierd results, don't always trust the IDE's output.
Bookmarks