[Solved] Hunspell files and Unicode lazarus / 21-General ---------------------------------------------------------------------- bobonwhidbey · 2021-11-06 18:17 I'm reading and processing Hunspell dic files with SL := tstringlist.create; SL.LoadFromFile('en_US.dic'); "Special characters" like é process just fine in most other files, e.g. French, but the US file en_US.dic  has a small number of words with é, eg. abbé, that aren't processed or read correctly.  That word appears as abb? I've tried both {$mode objfpc}{$H+}  and  {$ModeSwitch UTF8Strings}{$H+}  What's going on here? ---------------------------------------------------------------------- Jorg3000 · 2021-11-06 21:06 If you find out which encoding the file uses, you can use e.g. the following construction: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i SL.LoadFromFile('en_US.dic',TEncoding.UTF8); ---------------------------------------------------------------------- bobonwhidbey · 2021-11-06 21:27 Thank you for pointing me in the right direction. The solution for me, using Windows, was to open the file US.dic file with Notepad and then to "Save as.." the file, using UTF-8 encoding.