http://bugs.winehq.org/show_bug.cgi?id=18191
--- Comment #27 from Dmitry Timoshkov dmitry@codeweavers.com 2009-07-09 10:42:02 --- (In reply to comment #26)
That's interesting... so WinXP Notepad detected the file was in utf8. This is quite hard to do.
MultiByteToWideChar(CP_UTF8) should report an error if input is not a proper UTF-8.