Long story short:  

+ I'm using ffmpeg to check the artist name of a MP3 file.  

+ If the artist has asian characters in its name the output is UTF8.  

+ If it just has ASCII characters the output is ASCII.  

The output does not use any BOM indication at the beginning.

The problem is if the artist has for example a "ä" in the name it is ASCII, just not US-ASCII so "ä" is not valid UTF8 and is skipped.

How can I tell whether or not the output text file from ffmpeg is UTF8 or not? The application does not have any switches and I just think it's plain dumb not to always go with UTF8. :/

Something like this would be perfect:

<http://linux.die.net/man/1/isutf8>

If anyone knows of a Windows version?

Thanks a lot in before hand guys!