create new txt file in utf-8

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hius07
Junior Member
Junior Member
Posts: 24
Joined: 2012-05-28, 05:32 UTC

create new txt file in utf-8

Post by *hius07 »

Can I enforce TC to create new txt file in utf-8 encoding?
Now if I write only Russian characters (non-ASCII) the file is saved in Windows-1251.

It seems that it would be enough to change end of the string from CR+LF to LF.
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: create new txt file in utf-8

Post by *Stefan2 »

hius07 wrote:the file is saved in Windows-1251.
On Android?
from CR+LF to LF.
That's a different thing then unicode anyway.
hius07
Junior Member
Junior Member
Posts: 24
Joined: 2012-05-28, 05:32 UTC

Re: create new txt file in utf-8

Post by *hius07 »

Stefan2 wrote:
hius07 wrote:the file is saved in Windows-1251.
On Android?
Yes. That is the question.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2hius07
No you can't. The editor uses UTF-8 when needed, or when the opened file was already encoded with UTF-8. You could add a non-Russian character, save, then re-open the file and remove the character.
Author of Total Commander
https://www.ghisler.com
Post Reply