regex - Unknown UTF-8 character in PERL -
i want read string text file in perl
the method used read :
my $indpara = "c:\\users\\admin001\\desktop\\paratext.txt"; open(indpara, $indpara) || die "indesign paratext not found on location!"; $indesignpara = <indpara>; close indpara;
when reading text, getting unknown unicode character (
or 
) @ starting of text,
download text file used read below link
https://mega.co.nz/#!r1payaha!vsnl2tbpwottthccroiogsxk4ok_0yvzsczs054w0uu
i using komodo ide 8.5 , perl 5.16.3
kindly give idea overcome this
thanks in advance
vimal
what have there bom. telling have not utf-8 file, utf-16 (be) file).
the bom not part of data in file, can safely skip past , continue read data beyond it. however, should not treat data reading file utf-8, should treat utf-16 (be) , decode it appropriately.
Comments
Post a Comment