How to determine char buffer encoding?

Is there a free open source library to automatically detect the encoding of an arbitrary char* buffer?

For example, in python there is a module called chardet that does the same job.

Any help would be greatly appreciated.

+4
source share
1 answer

If Byte Estimation is present, you can use specific sequences that must be at the beginning of the stream to find the encoding used.

+1
source

Source: https://habr.com/ru/post/1440134/


All Articles