[SOLVED] Cyrillic text in combo box displayed as spaces lazarus / 31-LCL ---------------------------------------------------------------------- CM630 · 2026-02-26 09:35 Pretty odd case. Text is retrieved from an UTF8 ini file and added into a combo box. On the dev PC everything is fine. On some other PCs the Cyrillic text is displayed as spaces (I guess it someholw relater to regional settings). But if I create a new project and place the same code there and I use the same INI file everything is fine on all PCs  All PCs on which it was tested are with Win 11. A snippet is attached, the INI file is setting.ini in the build subfolder. Any idea for fixing the issue are welcome! This is the code: 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 //Searches for a string in a combo. CaseINsensitivefunction SearchCombo(aString: string; var Combo: TComboBox): integer;var  i:integer;  LCString: string;begin  Result := -1;  if (aString ='') then exit;  LCString:= UTF8LowerCase(aString);  for i:=0 to combo.Items.Count -1 do    if (LCString = UTF8LowerCase(combo.Items[i])) then exit (i);end; procedure LoadWatchPatterns(Filename : string = '');var  Ini : TIniFile;  Index : integer=0;  PrevIndex : integer=0;  WatchPattern : string='';  WatchPatternName : string='';  CurrentPatternName : string='';  Keys : TStringList;  ImportMode : Boolean = False; //True called by “Import patterns”, False when called from “Load Settings”  mFileName: string = '';  WatchPatterns : TStringList;begin  with MainForm do  begin    ImportMode := not (Filename = '');    PrevIndex:= cboWatchPatternName.ItemIndex;    CurrentPatternName:=cboWatchPatternName.Text;    mFileName := ExtractFilePath(Application.ExeName) + 'settings.ini';//Filename;     Ini := TIniFile.Create(mFileName);    if not FileExistsUTF8(mFileName) then Exit;    Keys := TStringList.Create;    Ini.ReadSection('Watch Patterns',Keys);     if not ImportMode then cboWatchPatternName.Clear;    cboWatchPatternName.Text:=CurrentPatternName;    WatchPatterns := TStringList.Create;    if (Keys.Count > 0) then      for Index := 0 to Keys.Count -1 do      begin        WatchPattern := Ini.ReadString('Watch Patterns',Keys.Strings[index], '');        if (WatchPattern = '') then Continue;        if length(WatchPattern.Split(#9)) <> 5 then Continue;        WatchPatternName := WatchPattern.Split(#9)[4];        if (SearchCombo(WatchPatternName,cboWatchPatternName) > -1) then Continue; //Skip duplicate patterns        WatchPatterns.add(WatchPattern);        cboWatchPatternName.Items.Add(WatchPatternName);     end;     if (PrevIndex < cboWatchPatternName.Items.Count)        then cboWatchPatternName.ItemIndex := PrevIndex;    Keys.Free;    Ini.Free;  end;end; EDIT:It turned out that the font of the combo was set to “MS Sans Serif”. I changed to “Default” and now everything looks fine. ---------------------------------------------------------------------- JuhaManninen · 2026-02-26 10:17 LazUtils have defines that affect character encoding of LCL. By default it is UTF-8 with define UTF8_RTL set. It can be disabled with define DisableUTF8RTL. Then ACP_RTL is set. See file lazutils_defines.inc. Make sure your app has no DisableUTF8RTL or ACP_RTL. ---------------------------------------------------------------------- CM630 · 2026-02-26 12:43 I sought for DisableUTF8RTL and ACP_RTL. No such strings were found. The project was converted from Delphi a couple of years ago.