Is there a way to encode any string with any encoding into UTF-8?
Is there some native function in PHP?
Or is there some function free to use?
I had the problem that if I utf8_encode()
a UTF-8 encoded string I get some double encoded thing which is useless.
I need to encode any incoming string, if it's Unicode, UTF-16, ISO..something, etc... into simple UTF-8. (Well, it would be good, if the function detects whether it's a string or not before manipulating it.)