more useful options | |
PerlMonks |
Re^6: utf8 in perlby theravadamonk (Scribe) |
on Jul 17, 2018 at 05:53 UTC ( [id://1218623]=note: print w/replies, xml ) | Need Help?? |
2 days ago, I got an email with below subject
then, When I ran the code, I got below error Unknown encoding "GB18030" at /usr/lib64/perl5/Encode.pm line 174 I searched it. Then I came to know that GB 18030 is a Chinese government standard. I found below 2 Urls https://perldoc.perl.org/Encode/CN.html https://stackoverflow.com/questions/6105316/how-to-convert-from-gbk-encoding-to-utf-8-encoding-in-perl they talk about Encode::HanExtra So, Added below line to my code. then, It started working.
So, Here's my UPDATED code. I think it's worth sharing...
Have a nice day to all Perl Monks
In Section
Seekers of Perl Wisdom
|
|