Topic: Can Save text in memo to Encode unicode ???

Form Code

Memo1.Lines.LoadFromFile('c:readme.txt'); 
Memo1.Lines.SaveToFile('c:readme.txt');

If want to load or save text and format is unicode(UTF8) ???

because text have more language  Chinese Japan Korea German Swedish Arabic ....
help me please !!!

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: Can Save text in memo to Encode unicode ???

Please download latest beta version.
https://www.dropbox.com/s/xf20ksdbdgj6w … b.zip?dl=0


Now Memo uses UTF8 to save file.

Dmitry.

3 (edited by prahousefamily 2017-03-10 02:53:56)

Re: Can Save text in memo to Encode unicode ???

OK Save to UTF8 ... If  in put A...Z or 0...9 Only

But I try input language japan,Korea,China,Russia and Open in Noetpadd++ check file encode  and display error?

result '??????????? ????? ???????????? ?????'

How to Fix ?

I try in put

Korea 사랑하는 남자 남자 여자 아이들
Japan 愛の子供の女の子の子供
China 語言
Russia Язык

but when display in noetpad++

????????
Post's attachments

Attachment icon TestUnicode.zip 2.73 kb, 448 downloads since 2017-03-10 

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: Can Save text in memo to Encode unicode ???

Please download latest beta version again
https://www.dropbox.com/s/xf20ksdbdgj6w … b.zip?dl=0


instead:

Form1.Memo1.SaveToFile(AppPath+'readme.txt');

you should use method

Form1.Memo1.SaveToFileUTF8(AppPath+'readme.txt');
Dmitry.

5 (edited by prahousefamily 2017-03-10 15:26:49)

Re: Can Save text in memo to Encode unicode ???

Good Job It Can Work Fix Error !
Thank You Dmitry.

Post's attachments

Attachment icon 2017-03-10 22 19 29.png 44.21 kb, 251 downloads since 2017-03-10 

My Visual Database : I Love You
Easy For Beginner Student For Me