TeamWin / android_bootable_recovery

1.28k stars 401 forks source link

When copying files with a file name containing Unicode characters from computer to VFAT ext sdcard will be converted to ASCII when restarting OS #334

Open tumatanquang opened 8 months ago

tumatanquang commented 8 months ago

Device codename: vs995 TWRP version: 3.7.0_9-0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

My ext sdcard has a VFAT format.

  1. Open TWRP then connect to PC
  2. Copy a file with the file name containing unicode character to the ext sdcard. For example, here is beoncé.txt.
  3. Restarting the device, using the Manager file of the operating system will see the file name is defective to beoncé.txt.
  4. When tested by Windows Explorer and TWRP's File Manager, the file name is still normal.
  5. However, if copied directly through the File transfers option of USB preferences, this error will not appear.

WHAT IS THE EXPECTED RESULT?

The name of the file containing unicode characters will not be faulty when copying into the ext sdcard.

WHAT HAPPENS INSTEAD?

The name of the file containing unicode characters will seem to be converted to ASCII when restarting OS and will convert it back to unicode when opening TWRP.

ADDITIONAL INFORMATION

According to the above error, it seems that the file name when copied via TWRP will be converted by the operating system to ASCII encoding. Copying via the File transfers option of USB preferences will not be affected.