In Delphi 2009 we have:
RichEdit1.Lines.LoadFromFile(OpenDialog1.FileName,TEncoding.UTF8);
RichEdit1.Lines.SaveToFile(OpenDialog2.FileName,TEncoding.Unicode);
How do I do that on Delphi 2006 if I do not have TEconding
yet?
Is there someway to transport that newer library back there? or is there a solution hidden in the Web?
I believe that UTF8Encode
and UTF8Decode
were present even before Delphi 2009. So you can decode/encode byte strings manually. (I have done that myself.)