Cyrilic text problem lazarus / 10-Designer ---------------------------------------------------------------------- seivtcho · 2011-11-02 21:49 Can some one please explain me how lazarus prints characters in a TComboBox component?  I have problems listing cyrylic text in the combobox, whel loading it from file with the LoadFromFile function. ---------------------------------------------------------------------- Avishai · 2011-11-02 22:37 I am not on a computer that has Lazarus so I can only give some suggestion.  I think it is a problem of Encoding.  If you have Notepad++ or something like it, you can open the text file and check what Encoding.  You can also type text into ComboBox and save to file.  Open ComboBox file with Notepad++ and check Encoding.  This might help you find the right path. ---------------------------------------------------------------------- Zoran · 2011-11-02 22:44 Lazarus always use UTF8 encoding. The text in your file is probably encoded differently. Add LConvEncoding unit to your uses list. This unit contains function for conversion between different character sets. Find out which encoding is used in your file and use appropriate function (probably CP1251ToUTF8). However, then you cannot use LoadFromFile directely, but you can use auxiliary StringList: Code: [Select]uses   ..., LConvEncoding; ... procedure TForm1.LoadTextInComboBox(FileName: String); var   SL: TStringList; begin   SL := TStringList.Create;   try     SL.LoadFromFile(FileName);     ComboBox1.Items.Text := CP1251ToUTF8(SL.Text);   finally     SL.Free;   end; end; ---------------------------------------------------------------------- seivtcho · 2011-11-04 16:03 My encoding is ANSI I used AnsiToUtf8 function Then it worked perfectly, but when I moved the project and the SAME text files on another computer, the same problem appeared. ---------------------------------------------------------------------- felipemdc · 2011-11-04 16:29 Quote from: seivtcho on November 04, 2011, 05:03:43 pmMy encoding is ANSI I used AnsiToUtf8 function Then it worked perfectly, but when I moved the project and the SAME text files on another computer, the same problem appeared. Ansi means this: The encoding of the system where the application is running. So obviously it changes from computer to computer. Why didn't you use the solution pointed by Zoran?