in reply to Re: String to UTF-8
in thread String to UTF-8

PrintUnicodeString($str); PrintUnicodeString{ join("", map { printf("\\x{%04X}", $_) # \x{...} } unpack("U*", $_[0])); # unpack Unicode characters }