unicoded output redirection
From: J. van der Knaap (spamzuigt_at_pastrami.be)
Date: 06/30/04
- Previous message: John: "Checking for Senders via POP3"
- Next in thread: J. van der Knaap: "Re: unicoded output redirection"
- Reply: J. van der Knaap: "Re: unicoded output redirection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 13:26:25 +0200
I've written a perl script that prints a report to STDOUT containing
non-standard ASCII characters (a box/table). I'm quite pleased with the
way it looks on the cli. However, when I redirect the output to a file,
it stores it in what I assume is ANSI format. This ruins my pretty box. :(
Would it be possible to redirect to a unicoded file?
Alternatively I could alter the perl script to write directly to
unicoded file, which I believe could be done by something like this:
open FH, ">:encoding(ucs2)", "file";
However that would mean a boatload of work I'm not looking forward to.
So if there's a way to simply redirect to a unicoded file I'd gladly try
that first.
Any help, suggestions would be appreciated.
Joost
- Previous message: John: "Checking for Senders via POP3"
- Next in thread: J. van der Knaap: "Re: unicoded output redirection"
- Reply: J. van der Knaap: "Re: unicoded output redirection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|