I would like to know the encoding used for a given string in C. Means, I have a character buffer and like to know the data is in UTF-8 format or UTF-16 format. So that I can process my data accordingly.
Is there any standard function available for the same. If not, how will I do the same.
Thanks in Advance!