Hey Christian,
I have a question. Currently programs send cd command by wm_copydata. Can we somehow pass Unicode path this way?
Sending cd message from external program & Unicode?
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, you need to send the cd command as usual, but in front of the path you must send the 3 byte UTF-8 BOM (byte order marker, EF BB BF hex) and then the path in UTF-8.
You need to do this for the left and right side separately. I recommend that you send the path in ANSI except when it contains Unicode (so the conversion to ANSI creates '?' characters). This way you keep compatibility with older TC versions.
You need to do this for the left and right side separately. I recommend that you send the path in ANSI except when it contains Unicode (so the conversion to ANSI creates '?' characters). This way you keep compatibility with older TC versions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thank you for the answer.ghisler(Author) wrote:Yes, you need to send the cd command as usual, but in front of the path you must send the 3 byte UTF-8 BOM (byte order marker, EF BB BF hex) and then the path in UTF-8.
You need to do this for the left and right side separately. I recommend that you send the path in ANSI except when it contains Unicode (so the conversion to ANSI creates '?' characters). This way you keep compatibility with older TC versions.
Could you post a working example, e.g. in Delphi? So far I only have code that works for ANSI.ghisler(Author) wrote:Yes, you need to send the cd command as usual, but in front of the path you must send the 3 byte UTF-8 BOM (byte order marker, EF BB BF hex) and then the path in UTF-8.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
There are a lot of examples within forum, e.g. here.Dalai wrote:Could you post a working example, e.g. in Delphi? So far I only have code that works for ANSI.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror