I need to check the encoding of text file that whether it is UTF 8 with BOM or UTF 8 without BOM or ANSI and further proceed based upon the result.
I could not find the code to check for UTF without BOM or ANSi encoding. can anyone please help with this issue. I am using tchangefileencoding to convert the textfile but before that i need to detect the encoding.