in reply to how to read from utf8 text file?
open my $handle, '<:encoding(UTF-8)', $name or die "Can't open '$name' for reading: $!";
Then you also have to decide for an encoding when you enter it into your database, or print it to your console.
You have to know your DBs encoding for that, and I know too little of Microsoft's various programs to help you with that.
I think MS uses UTF-16le for many things, it might be worth a try.
See also perluniintro, Encode, perlunicode, Character Sets and Unicode.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to read from utf8 text file?
by Juerd (Abbot) on Jul 01, 2008 at 12:54 UTC | |
Re^2: how to read from utf8 text file?
by MelaOS (Beadle) on Jul 01, 2008 at 12:55 UTC | |
Re^2: how to read from utf8 text file?
by umesh_epub (Novice) on Aug 13, 2012 at 12:00 UTC |