Decoding \x{ZZZZ} utf8 strings inside perl
We have some cPanel accounts with Cyrillic language set to default, which makes cPanel to return escaped utf8 messages while you operating with the API. One of the example messages I was getting , looked like this : \x{437}\x{430}\x{43f}\x{438}\x{441} \x{437}\x{430} \x{434}\x{43e}\x{43c}\x{435}\x{439}\x{43d} \x{201c} some-user-domain.com \x{201d} \x{432}\x{435}\x{447}\x{435} \x{441}\x{44a}\x{449}\x{435} \x{441}\x{442}\x{432}\x{443}\x{432}\x{430}. which is not very eye-friendly. Using simple… Continue reading Decoding \x{ZZZZ} utf8 strings inside perl