http://www.perlmonks.org?node_id=1158228


in reply to Re: Unescaping JavaScript string
in thread Unescaping JavaScript string

It's also important, I feel, to note that this is not necessarily UTF-8.

Latin-1 (ISO 8859-1) \x3a = 58 = : = chr(58) = "\x{3a}" \x2f = 47 = / = chr(47) = "\x{2f}" ASCII: ditto UTF-8: same same Windows-1252: also, also

Unless it's been specifically decoded to UTF-8 (or one of the others) from a known source encoding, or it appeared in a use utf8 script literally, it is a risky assumption.