in reply to Re^2: sring encode problem (hexadecimal)
in thread sring encode problem (hexadecimal)

Use a bind operator (=~) instead of an assignment operator (=).

Replies are listed 'Best First'.
Re^4: sring encode problem (hexadecimal)
by courierb (Novice) on Jan 20, 2011 at 05:03 UTC
    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
      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.