This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Chinese filename display question in USB storage

Hi,

I have one question about simple/traditional filename display in USB storage.

Currently i can see the correct filename by mass storage functionality from PC.

But i can not see the correct filename for simple/traditional Chinese in am335x,

if i would like to send a such file from USB to specific destination, i do not know how to do it because it shows question mark ex:"????.txt".

If any solution can support that? 

Thanks a lot.

  • Does the Chinese characters got displayed correctly in the local filesystem? If not, the font used in displaying the file name should support Chinese characters. Otherwise, I think it is because it does not pass proper options (iocharset?) when mount the USB drive.

  • Hi Bin:

    It dose not display in the local fileystem correctly.

    The steps i enabled :

    1. set simple/tradinational Chinese and UTF-8 in menuconfig

    2. set "/dev/sda1            /media/sda1          auto       rw,user,umask=0000,fmask=0000,iocharset=utf8              0  0" in /etc/fstab.

    3. set 'iocharset=utf8' in /etc/udev/script/mount.sh.

    4. set "iocharset=big5" above, some chars are correct, but still have '?' char in filename.

    But still can not display correctly. Any extra language setting in filesystem?

    The results of on UTF-8 tera term as below:

    1. set utf8

    揃蹋桶 - Fionna.doc
    揃蹋桶.doc
    蕣IA庲聃2012-JIMMY.ppt
    蕣虴夔庲聃2012-JIMMY.ppt
    陔崝遁?掛恅璃.jnt

    2. set big5

    人員資料表 - Fionna.doc
    人員資料表.doc
    東科交通車-1421.ppt
    國際IA認證2012-JIMMY.ppt
    國????鉬{證2012-JIMMY.ppt

  • aaron1008 said:

    2. set big5

    人員資料表 - Fionna.doc
    人員資料表.doc
    東科交通車-1421.ppt
    國際IA認證2012-JIMMY.ppt
    國????鉬{證2012-JIMMY.ppt

    The first 3 filenames are correct, but the last are not, which seems to tell that those filenames use different encodings.

    This is a pure Linux issue, no related to AM335x. So I am not sure how much I can help, but following are something I found from Internet.

    - how-to view chinese FAT file system: http://www.murga-linux.com/puppy/viewtopic.php?t=23233 (might be out of date.)

    - http://www.fclose.com/b/linux/159/解决fat32文件系统分区中文文件名在linux下显示乱码/ (utf8=1 is new to me)

  • Thanks, Bin.

    I will study it.