On Fri, 25 Apr 2003 16:47:34 +0100 (BST)
J dinesh <dine005(_at_)yahoo(_dot_)co(_dot_)in> wrote:
Hello,
Thanks for your help.
Attached is the Perl file and input xml file, I didn't
get correct output, the scripts is splitting the
Unicode and converting too many entity.
Please check the correct output (content.out) file, i
need to convert like this.
A statement open(IN,"<:utf8","$infile.xml") should be used
instead of open(IN,"<$infile.xml").
As perl is not aware of the encoding used in a file,
let perl know it via :utf8 or :encoding(), etc.
cf. http://www.perldoc.com/perl5.8.0/pod/perluniintro.html#Unicode-I-O
SADAHIRO Tomoyuki