in reply to Unescaping JavaScript string
Hi a01, welcome to the monastery.
Your string was encoded to UTF-8, so you need to decode it using the core module Encode.
You may want to refer to perlunitut for an introduction to Unicode processing in Perl.$ perl -MEncode -E' say Encode::decode_utf8("https\x3a\x2f\x2fexample.com"); ' https://example.com
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unescaping JavaScript string
by bart (Canon) on Mar 18, 2016 at 11:35 UTC | |
|
Re^2: Unescaping JavaScript string
by Your Mother (Archbishop) on Mar 18, 2016 at 13:39 UTC | |
|
Re^2: Unescaping JavaScript string
by Anonymous Monk on Mar 18, 2016 at 04:34 UTC |