Not encoded string is: abcde String: {{abcde}} length = 5 \x{61}\x{62}\x{63}\x{64}\x{65} Encoded string is: abcde String: {{abcde}} length = 5 \x{61}\x{62}\x{63}\x{64}\x{65} Not encoded string is: äöüéà String: {{äöüéà}} length = 10 \x{c3}\x{a4}\x{c3}\x{b6}\x{c3}\x{bc}\x{c3}\x{a9}\x{c3}\x{a0} Encoded string is: äöüéà String: {{äöüéà}} length = 20 \x{c3}\x{83}\x{c2}\x{a4}\x{c3}\x{83}\x{c2}\x{b6}\x{c3}\x{83}\x{c2}\x{bc}\x{c3}\x{83}\x{c2}\x{a9}\x{c3}\x{83}\x{c2}\x{a0}