I life in Germany so my string is only 'äöü' to distingush between ISO-8859-1, utf8 and unknown. But you can extend this to all your supported encodings, just find a char with different representations.
Boris
Comment on Re^3: Encoding confusion with CGI forms