Recent

Author Topic: Handling accented characters in huntspell files  (Read 436 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 591
    • Double Dummy Solver - free download
Handling accented characters in huntspell files
« on: February 26, 2021, 04:09:07 am »
My app reads THuntspell .dic files into a stringlist.  I've tried many different approaches but I have been unable to handle accented characters correctly. For example, the typical stringlist loadfromfile doesn't seem to be able to handle "abbé".  The é is a problem.   For example
       s := utf8toAnsi(SL);           doesn't work, nor does
       SL.Text := SysToUtf8(SL.Text);
How can a read these typical huntspell dic files?

Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018