TC Editor does not understand UTF-8 BOM

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
t_arn
Junior Member
Junior Member
Posts: 42
Joined: 2006-12-28, 07:52 UTC

TC Editor does not understand UTF-8 BOM

Post by *t_arn »

I used the internal commands 123 or 124 to write the marked files to a text file.

When the created files is opened with the TC Editor, the first line is shown as starting with a blank. The same is true for gEditor. But with the Jota Text Editor, the file is displayed correctly.

It seems that the TC Editor does not understand the UFT-8 Byte-Order-Mark.

Tom
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, cannot reproduce, the file shows up correcty in TC editor on my phone.

Which Android version do you use?
Author of Total Commander
https://www.ghisler.com
t_arn
Junior Member
Junior Member
Posts: 42
Joined: 2006-12-28, 07:52 UTC

Post by *t_arn »

I have a HTC Desire HD with Android 2.2.1
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I have Desire (withour HD) with Android 2.2 too! The BOM is not shown in the editor. Maybe I can try to remove it when loading the file.

Do you use the standard HTC software, or a 3rd party ROM like Cyanogenmod? I'm using the standard software (not rooted).
Author of Total Commander
https://www.ghisler.com
t_arn
Junior Member
Junior Member
Posts: 42
Joined: 2006-12-28, 07:52 UTC

Post by *t_arn »

With rc1 it works OK.
Tom
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed I'm now removing the BOM when loading, and re-add it when saving (only if there was one before).
Author of Total Commander
https://www.ghisler.com
Post Reply