Recent

Author Topic: How to avoid UTF8 BOM in SynMemo  (Read 2481 times)

kirchfritz

  • Jr. Member
  • **
  • Posts: 66
  • WIN11 LAZ 2.2.4 FPC 3.2.2
How to avoid UTF8 BOM in SynMemo
« on: December 05, 2011, 07:51:13 am »
Hello,

if I use
Code: [Select]
SynMemo.Lines.LoadFromFile('myUTF8file.xml')

I see three strange characters at the beginning of the text in my SynMemo.
Obviously it is the UTF8-Byte Order Mark (BOM)

Is there an easy way (may be an option in SynMemo or SynMemo.Lines) to remove this BOM?

 

TinyPortal © 2005-2018