cht電腦資訊
adm Find login register

OS File System Name Unicode Encodings

eliu
1 OS File System Name Unicode Encodings
Promote 0 Bookmark 02012-07-04quote  

Windows(FAT,NTFS): UTF-16. Win32 的 file system API for unicode 都是 16-bit 的 wchar_t

Linux: UTF-8 (NFC, normalization form C) 大部份人在用的,網頁的 UTF-8 也是用這一種。其實 linux 的 8-bit files name 不管 encoding,要存 Big5 也可以,只是在 file manager (nautilus…) 可能會顯示成亂碼。由於 GTK 只用 UTF-8,所以 file name 順理成章是 UTF-8。

MacOS X: UTF-8 (NFD, normalization form D)  好像只有 MacOS 自己在用

edited: 5

cht電腦資訊
adm Find login register
views:1707