Results 1 to 3 of 3

Thread: PERL: Convert UTF-16 encoded file to ASCII

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    PERL: Convert UTF-16 encoded file to ASCII

    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-

  2. #2

    Re:PERL: Convert UTF-16 encoded file to ASCII

    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!

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    Re:PERL: Convert UTF-16 encoded file to ASCII

    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.

Similar Threads

  1. Exporting Visio Diagrams in Other File Formats
    By The Donald in forum Windows - General Topics
    Replies: 1
    Last Post: 07-08-2005, 12:55 PM
  2. How to use the Sysprep tool
    By CoolJsa14 in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 08:34 PM
  3. File Formats Supported by Windows Media Player
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-03-2005, 10:17 PM
  4. Calling all mail server admins
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 04-21-2004, 08:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •