Convert text from any encoding to UTF8

Hi all.
I’d need to convert a string from any encoding to utf8. The input string comes from a text file, and I can’t determine which encoding they can have.
So convertencoding function requires the input encoding type, but how can I “read” it if I have different text files with different encodings?

Thanks a lot to all!

You have code to do that Here

Did you try it ?

Do People don’t know about the search feature of the forum? :joy:
Anyway, please start here… :slight_smile: