On 11/16/2017 4:25 AM, Torsten Bonde Christiansen via Lazarus wrote:
Does Lazarus or FPC include other convinient tools that may detect the
encoding of (the content of) a file?
What do others do in this situation?
If you need cross-platform, this works with some trivial changes:
http://chsdet.sourceforge.net/
If you're Windows only, Microsoft provides
IMultiLanguage2.DetectInputCodepage():
https://msdn.microsoft.com/en-us/library/aa740986(v=vs.85).aspx
--
Zoë Peterson
Scooter Software
--
_______________________________________________
Lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus