Filename changed if using copy command.
For example, I have one file named "test?:test.txt", if I use rclone copy command to copy to dropbox, the filename became "testtest.txt".
In hex editor I found that "?:" is originally "ef bc 9f ef bc 9a", but became "ef 80 bf ef 80 ba" after copy to dropbox.
This problem did not happen if I mounted and manually copy to dropbox using explorer.
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
os/version: Microsoft Windows 10 IoT Enterprise LTSC 2021 21H2 (64 bit)
echo "?:" | hexdump -C
00000000 ef bc 9f ef bc 9a 0a |.......|
00000007
Your names use something called NFD (decomposed) normalisation - you see your string is 4 characters but ends up as 6 code points.
yes they both look the same.... but they are not and can't be used in JSON.
As explorer probably normalized your name. Could you check if it is still ef bc 9f ef bc 9a on Dropbox?
Characters normalisation is still ongoing issue in 2023... in all computer industry. Sometimes things seem to work but when become more complex the break.
your original string "?:" (hex: EF BC 9F EF BC 9A) is composed of two valid UTF8 characters - they are both part of "East Asian Punctuation Marks" category
EFBC9F ? Ideographic question mark
EFBC9A : Ideographic colon
`rclone copy' saves them as hex: EF 80 BF EF 80 BA - also two valid UTF8 characters:
EF80BF:
EF80BA:
Do these two ideograms make any sense in relation to `"?:" (lets ignore for the moment that dropbox cant display them)
I have tried to reproduce it myself with crypt and dropbox - unfortunately I can not see this problem. I am on macOS so things can be different.
Could you please show step by step how to reproduce it on Windows? You say "copy to dropbox". But do you mean copy to crypt hosted by dropbox?
And where you see "testtest.txt"? In mount or by running rclone lsf for example?
And yes, copy to crypt hosted by dropbox, but uncrypted is same result in explorer.
I see "testtest.txt" in explorer, and under rclone lsf is "test?:test.txt", which original "?!" became "?!" .
I've also noticed if rclone copy to not encrypted dropbox, "?!" became "?!" too.
The hex representation is 74 65 73 74 **3f ef bc 81** 74 65 73 74
I tried the lastest WinFsp, the filename represent in explorer did change, the two character is now ef 80 bf ef bc 81, and I found that the WinFsp version I previously used was 2021 (1.9 I guess).
I mean, filename with fullwidth question mark like this (?), replaced to fullwidth question mark too but with this character (`), so become like this (`?)
So i want filename same like original filename when i use rclone copy to upload to my drive.
But, thank you for replying me!