I've got data coming in over $_GET which is sometimes UTF8 and sometimes not. Naturally, this gives me trouble since I can't just run utf8_decode() on it, because if it turns out not to be unicode, some characters will be turned into questionmarks ("?") by utf8_decode().
Is there a way for me to detect whether a string contains unicode data?