/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
byte[] b = s.getBytes("UTF-8");
return new String(b,
"ISO-8859-1"); }
byte[] b = s.getBytes("ISO-8859-1");
return new String(b,
"UTF-8"); }
{
System.
out.
println(encodeLatinToUTF8
("ÅÄÖ åäö")); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKICAgIHB1YmxpYyBzdGF0aWMgU3RyaW5nIGVuY29kZVVURjhUb0xhdGluKFN0cmluZyBzKSB0aHJvd3MgVW5zdXBwb3J0ZWRFbmNvZGluZ0V4Y2VwdGlvbiB7CiAgICAgICAgYnl0ZVtdIGIgPSBzLmdldEJ5dGVzKCJVVEYtOCIpOwogICAgICAgIHJldHVybiBuZXcgU3RyaW5nKGIsICJJU08tODg1OS0xIik7ICAgICAKICAgIH0KCiAgICBwdWJsaWMgc3RhdGljIFN0cmluZyBlbmNvZGVMYXRpblRvVVRGOChTdHJpbmcgcykgdGhyb3dzIFVuc3VwcG9ydGVkRW5jb2RpbmdFeGNlcHRpb24gewogICAgICAgIGJ5dGVbXSBiID0gcy5nZXRCeXRlcygiSVNPLTg4NTktMSIpOwogICAgICAgIHJldHVybiBuZXcgU3RyaW5nKGIsICJVVEYtOCIpOyAgICAgIAogICAgfQogICAgCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTeXN0ZW0ub3V0LnByaW50bG4oZW5jb2RlTGF0aW5Ub1VURjgoIsOFw4TDliDDpcOkw7YiKSk7Cgl9Cn0=