arozos icon indicating copy to clipboard operation
arozos copied to clipboard

Russian text in filenames becomes ?????.txt (or other file format)

Open SozinovD opened this issue 4 years ago • 7 comments

I use this distributive on 16Gb flash drive on Raspberry Pi Zero W https://www.mediafire.com/file/mmjyv77ei9fwab5/arozos_v1.109.7z/file

I mounted a usb stick as it is mensioned in instruction: https://www.youtube.com/watch?v=s8xjY0HwGNM

If there are files or folders whith a russian text in file(foulder)name russian letters are removed whith "?" symbol

Tried solutions:

  1. sudo apt install ttf-mscorefonts-installer

  2. In file ~/aroz_online/web/SystemAO/file_system/file_explorer.html replace h1, h2, h3, p, span, div,span { font-family: 'TaipeiSansTCBeta-Regular'} by h1, h2, h3, p, span, div,span { font-family: 'TaipeiSansTCBeta-Regular',"Lucida Console", "Courier New", monospace;}

Both didnt help

image_2021-02-06_17-52-03

Host Information(please complete the following information):

  • OS: [Debian Buster image from git]
  • Go version 1.15.3
  • Arozos version 1.109

Client Information(please complete the following information):

  • OS: Windows 10 (64 bit), Android 11
  • Browser Chrome 88.0.4324.150

SozinovD avatar Feb 06 '21 16:02 SozinovD

Also cannot copy any file whith russian letters to usb stick, but can create them into SD card that is system disk of RPi. I have feeling that there is an issue with reading\writing these files to external storage

SozinovD avatar Feb 06 '21 21:02 SozinovD

Unable to reproduce with the same OS, same vroot file system, vroot uuid, vroot name and development board. 2021-02-07_11-24-19

Maybe I will leave this here and see if any other user have the same issue regarding this problem.

tobychui avatar Feb 07 '21 03:02 tobychui

Hi @SozinovD.

Can you tried with the latest version and see if this issue still exists? If no, I think I will be closing this issue.

tobychui avatar May 20 '22 12:05 tobychui

I encountered the same issue. I noticed that it depends on the USB-flash file system. If it is NTFS or extFAT russian symbols appear correct. If USB-flash formatted in FAT32 -
I see "???" instead of russian symbols.

grebenkoff avatar May 30 '22 08:05 grebenkoff

I encountered the same issue. I noticed that it depends on the USB-flash file system. If it is NTFS or extFAT russian symbols appear correct. If USB-flash formatted in FAT32 - I see "???" instead of russian symbols.

Nice to know! I just googled the issue and it seems FAT32 used "OEM codepage" for decoding the filename. It seems there might be issue in your Raspberry Pi OS language configuration that didn't support FAT32 Russian filename. Can you try changing the Raspberry Pi OS system language to Russian and try again with the FAT32 formatted USB flash drive?

tobychui avatar May 30 '22 08:05 tobychui

I've checked localisation configuration on my Raspberry Pi: language=russian, country=Russia, character set = UTF8. But russian symbols on FAT32 printed incorrect.

grebenkoff avatar May 30 '22 09:05 grebenkoff

@grebenkoff I guess maybe this is a Raspberry Pi OS issue? From here it said

The command "sudo mount -t vfat -o utf8 /dev/sd(x) /my-mountpoint" now shows æ ø å Æ Ø Å correctly A similar entry in /etc/fstab "UUID=(x) /my-mountpoint vfat defaults,utf8,auto,users,rw,nofail 0 0" also works. (Notice "utf8").

Can you confirm this by manually mounting the drive with the above command (notes the -o utf8 flag) and try to see if the problem get fixed? If yes, please let me know to add some new code in the storage pool mounting logic, thanks!

tobychui avatar May 31 '22 03:05 tobychui

As there are no way to reproduce this, and this seems to be a file system level issue, I will close this issue now.

tobychui avatar Oct 21 '22 06:10 tobychui