Does TC understand UTF-8

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
philk
Junior Member
Junior Member
Posts: 11
Joined: 2006-10-01, 16:15 UTC

Does TC understand UTF-8

Post by *philk »

Hello,

I wonder in which character format I should send filenames from my FS-Plugin back to TC? Sending UTF-8 Characters lead to garbage being displayed.
Is there some documentation about the supported character formats?

Thanks in advance!
The Dude Abides.
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

According to FS-Plugin writer's guide 1.3 there is no unicode support in Plugin API.
philk
Junior Member
Junior Member
Posts: 11
Joined: 2006-10-01, 16:15 UTC

Post by *philk »

Ok then. Into which character set should I transfer my utf-8 chars then? Currently selected codepage for the running process (TC)?
The Dude Abides.
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

philk wrote:Currently selected codepage for the running process (TC)?
Why not.
philk
Junior Member
Junior Member
Posts: 11
Joined: 2006-10-01, 16:15 UTC

Post by *philk »

It does not work. Converting the UTF-8 to Unicode and then to Multibyte produces "?" signs in TC. However having filenames with Unicode Characters in my usual filesystem on a NTFS volume, TC is able to display cyrillic letters.
The Dude Abides.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander does NOT currently support Unicode in any plugins. This is planned for TC8 only, and will require a LOT of changes to the program.
Author of Total Commander
https://www.ghisler.com
philk
Junior Member
Junior Member
Posts: 11
Joined: 2006-10-01, 16:15 UTC

Post by *philk »

Thanks for paying attention Christian! I was only wondering cause I can see cyrillic letters when I browse my harddisk with TC just fine.

Does TC use different methods to convert disk filenames? I remember it asked me once when I navigated into a directory with cyrillic filename that I need to install language support or something like this. But I could be mistaken. Still I can see cyrillic letters in diskfolders just fine.
The Dude Abides.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for paying attention Christian! I was only wondering cause I can see cyrillic letters when I browse my harddisk with TC just fine.
The normal file functions now support unicode names, also for copying and deleting, but not for plugins, ftp, archives etc.
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2philk
TC uses ANSI codepage for filenames. Nor UTF-8 nor Unicode are not supported.
Post Reply