tobychui / arozos

Web Desktop Operating System for low power platforms, Now written in Go!
http://arozos.com
GNU General Public License v3.0
1.96k stars 140 forks source link

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

Closed SozinovD closed 1 year ago

SozinovD commented 3 years ago

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):

Client Information(please complete the following information):

SozinovD commented 3 years ago

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

tobychui commented 3 years ago

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 commented 2 years ago

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.

grebenkoff commented 2 years ago

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.

tobychui commented 2 years ago

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?

grebenkoff commented 2 years ago

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

tobychui commented 2 years ago

@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 commented 1 year ago

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