Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

File name font problem (from Linux)

Windows 1x on Thinkpads
Post Reply
Message
Author
euless
Freshman Member
Posts: 103
Joined: Wed Jan 27, 2021 12:33 am
Location: Hong Kong , China

File name font problem (from Linux)

#1 Post by euless » Sat Dec 04, 2021 11:54 pm

Hi,

I recently immigrated to Win-10. Previously, I was using Linux.
After I transfer all my personal files from Linux to Win-10, I noticed all my Chinese files have wrong file names.
Instead of showing the Chinese character in the file names, it shows giberish characters.

My Win-10 does have Chinese fonts. I am able to use F2 to rename the Chinese files with Chinese characters. But there are hundreds of files, and I don't want to manually go to each one to fix the file names.

English filenames are all correct.

So, it seems like the Chinese file names got screwed up doing the immigration from Linux to Win-10.

Anyone ran into this problem before?

Thanks!

dr_st
Admin
Admin
Posts: 9705
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: File name font problem (from Linux)

#2 Post by dr_st » Sun Dec 05, 2021 1:40 am

Welcome to "Encoding Hell".

What exactly did you do? What do you mean by "transferred files from Linux to Windows"? Did you copy them from one partition to the other? Or to a different hard drive? Or do you just mount the same storage volume on different operating systems and file names show differently?
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad

euless
Freshman Member
Posts: 103
Joined: Wed Jan 27, 2021 12:33 am
Location: Hong Kong , China

Re: File name font problem (from Linux)

#3 Post by euless » Sun Dec 05, 2021 10:01 am

dr_st wrote:
Sun Dec 05, 2021 1:40 am
Welcome to "Encoding Hell".

What exactly did you do? What do you mean by "transferred files from Linux to Windows"? Did you copy them from one partition to the other? Or to a different hard drive? Or do you just mount the same storage volume on different operating systems and file names show differently?
I didn't pay attention to the filenames when transferring the files over to Windows. I copied the entire user home folder.
I just did "cp -rp /home/euless /mnt/"

I did one of the following (can't recall which way)...

(1) While in Linux, I mounted a Fat32 USB Thumbdrive, and copied the files into it. Then in Win-10, copy the files from Thumbdrive to the Win-10's NTFS partition...or

(2) While in Linux, I mounted the Win-10's NTFS partition (using ntfs-3g and fuse), and then copy the files over to the mounted partition with "cp -rp".

I probably did (1).

dr_st
Admin
Admin
Posts: 9705
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: File name font problem (from Linux)

#4 Post by dr_st » Sun Dec 05, 2021 2:46 pm

According to this:
https://docs.microsoft.com/en-us/window ... file-names

NTFS uses Unicode for file names while FAT32 partitions use OEM character sets, which is more prone to causing confusion.

I would suggest you try a variation of (1), but use an NTFS-formatted thumb drive.
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Windows 10/11/etc.”

Who is online

Users browsing this forum: No registered users and 14 guests