[Lazarus] Guessing the encoding of some text
Zoë Peterson
zoe at scootersoftware.com
Fri Nov 17 00:57:13 CET 2017
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
More information about the Lazarus
mailing list