On Tuesday, 22 July 2014 at 09:50:00 UTC, Sam Hu wrote:
Greetings!

As subjected,how can I know whether a file is in UTF8 encoding or ansi?

Thanks for the help in advance.

Regards,
Sam

By ANSI do you mean Windows code pages? Text editors usually use some heuristics (statistical analysis for example) to determine encoding of file. Note that these methods are not always accurate, so you need to provide ability to choose other encoding for users.

Reply via email to