Synedit problem using unicode lazarus / 3-General ---------------------------------------------------------------------- carmarri · 2010-01-14 15:21 Hello, I'm trying to use Synedit on my project because I want an automatic highlight for html documents. The problem I found is that qhen I use special characters, despite I enable the option UNICODE, It still displays question marks "?" I found on internet a Unicode SynEdit package: http://mh-nexus.de/en/unisynedit.php But I don't know how to create a lpk file for that project. I've found some messages of people having the same problem but not any solution. Please, could anyone help me? Thanks very much, Carles ---------------------------------------------------------------------- theo · 2010-01-14 15:56 HTML Documents should have a meta charset tag like this read this value (here ISO-8859-1)  and convert it to EncodingUTF8 with unit LConvEncoding: function ConvertEncoding(const s, FromEncoding, ToEncoding: string): string; ---------------------------------------------------------------------- carmarri · 2010-01-15 09:20 Hello, Thank you very much for your help. It worked for me:     Try         AssignFile(fp, UTF8ToSys(filepath));         Reset(fp);         while not eof(fp) do begin           ReadLn(fp,auxstr);           fEditor.SynEdit1.Lines.Add(ConvertEncoding(auxstr, 'ISO-8859-1', 'UTF8'));         end;         CloseFile(fp);       except         MessageDlg('Unable to read the file!', mtWarning, [mbYes], 0);         exit;       end; I really appreciate all the contributions on this forum. Carles