Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I went through this when we were receiving a latin1 encoded XML file, and I needed to compare it to what got loaded into the database, which when fetched, was, you probably already know this...but I did something like:

    use Encode qw(decode);
      open(my $from_db_h, ">:encoding(latin1)", $file) or die "Err opening $file: $^E";
        print $from_db_h decode( 'hp-roman8', join("|", @row{@columns})."\n");
    • Thank god for iconv. MSXML doesn't like hp roman8, so a quick iconv on the file before loading it as utf does the trick for our xml input file problem.