in reply to
Re^3: sring encode problem (hexadecimal)
in thread
sring encode problem (hexadecimal)
Thanks for the enlightment.
Use a bind operator (=~) instead of an assignment operator (=).
now it seems print out a utf-8 encoded string.
while it is not 7 digit in the format of "& #x20AC;" (which is 7 digit)
Thanks again
Comment on
Re^4: sring encode problem (hexadecimal)
Replies are listed 'Best First'.
Re^5: sring encode problem (hexadecimal)
by
ikegami
(Patriarch)
on Jan 20, 2011 at 08:14 UTC
What's the encoding of the source file? By not saying otherwise, you've communicated that it's iso-8859-1. Add
use utf8;
if it's encoded using UTF-8.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom