TC corrupts Japanese characters in temp file names

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ruler26
Junior Member
Junior Member
Posts: 8
Joined: 2011-11-02, 06:17 UTC

TC corrupts Japanese characters in temp file names

Post by *ruler26 »

I copy files in TC via TeraCopy. TeraCopy can't copy files that have Japanese characters in their title because TC is replacing the characters with question marks.

Here are the steps to reproduce this bug:

----------------------------------------------
1. Download Total Commander 7.56a and install it
2. Download TeraCopy 2.27
3. Install TeraCopy as a Portable version in the Total Commander root directory, so that your path might look like "c:\TA_TEMP\totalcmd\TeraCopy\"
4. Launch Total Commander
5. Right click on the button bar at the top and select "Change..."
6. In the "Change button bar" dialog, click "Add", then fill in the properties as follows:

Command = %Commander_Path%\TeraCopy\TeraCopy.exe
Parameters = Copy *"%L" "%T"
Start path = %Commander_Path%\TeraCopy\
Icon file = %Commander_Path%\TeraCopy\TeraCopy.exe

Then click OK to create the button

7. Create a text file with the following title in a directory:

【ロックマン3】8体のボスステージBGMをノンストップアレンジしてみたpart1.txt

8. Navigate the other TC tab to a different directory (the file will be copied here)
9. Select the file in the first directory, then click on the TeraCopy button created in step 6
----------------------------------------------

The TeraCopy window will come up and report that the file copy failed with the following error:

"Open Error: The filename, directory name, or volume label syntax is incorrect."


I originally posted this problem in the TeraCopy online support system (ticket #UUE-967-44917). A staff member responded saying that TC was writing temp files this way. Here's the example output that he sent me (this was an attempt to copy more than the one file I mentioned in the steps to reproduce above):

c:\Test\(Hellsing Caramelldansen) ????MAD?Hellsing???????????(???).txt
c:\Test\??????3?8????????BGM???????????????part1.txt
c:\Test\??????3?8????????BGM???????????????part2.txt
c:\Test\????? (megaman) 7 music 8bit?????part1.txt
c:\Test\????? (megaman) 7 music 8bit?????part2.txt
c:\Test\????? (megaman) 9???? music 8bit?????part2.txt
infimum
Junior Member
Junior Member
Posts: 39
Joined: 2007-12-08, 18:43 UTC

Post by *infimum »

Use *"%UL" for UTF-8 Unicode or *"%WL" for UTF-16 unicode.
ruler26
Junior Member
Junior Member
Posts: 8
Joined: 2011-11-02, 06:17 UTC

Post by *ruler26 »

infimum wrote:Use *"%UL" for UTF-8 Unicode or *"%WL" for UTF-16 unicode.
Awesome, thank you for posting that! That fixes my problem. This thread should be closed.

Thank you again!
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply