I have a text file encoded in UTF8 and I create an application in delphi 2009 with opendialoge, a note and a button and write this code:
if OpenTextFileDialog1.Execute then
Memo1.Lines.LoadFromFile(OpenTextFileDialog1.FileName);
When I launch my application, I click on the button and select my text file, in the note I see:
"Œ ط ط ط ط ¢ ¢ ظ ظ ظ ع ع ع â â â Œ چط ط ط ط Œ Œ Œ Œ ط ط ط ط ط ط ط ط ط ط ط ط ط ط ط → → → →
characters were not displayed correctly. How can I solve this problem?
source
share