[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mount iso9660 can not show chinese filename..

On Wed, 21 Feb 2001, ha shao wrote:

> On Wed, Feb 21, 2001 at 10:25:44AM +0800, phinex@hpcc.ee.nthu.edu.tw wrote:
> > On Wed, Feb 21, 2001 at 04:24:00AM +0800, Cosmos wrote:
> > 	如果 mount 時只加上 iocharset=cp950 的選項..
> > 	而不加 codepage=950 的選項...
> > 	mount 光碟是可以看到中文長檔名的...
> > 	但是對于 FAT 的 partition ...不管有沒有加上 codepage=950.
> > 	都可以正確的看到中文長檔名...
> Good finding... This should go in to FAQ.


codepage=###  -- Sets the codepage for converting to shortname characters
		 on FAT and VFAT filesystems.  By default, codepage 437
		 is used.  This is the default for the U.S. and some
		 European countries.
iocharset=name -- Character set to use for converting between 8 bit characters
		 and 16 bit Unicode characters. Long filenames are stored on
		 disk in Unicode format, but Unix for the most part doesn't
		 know how to deal with Unicode. There is also an option of
		 doing UTF8 translations with the utf8 option.

	如果不用到短檔名, codepage 是不用加的, 如果要用到短檔名, 理論上
	要加上 codepage.......

> > 	對了...如果 mount ntfs 的 partition...
> > 	要如何能夠看到中文長檔名呢?
> > 	我 mount ntfs 時沒辦法加入 iocharset 的選項...
> Yes you can. 
> # mount -t ntfs -o iocharset=cp936 /dev/hda23 /mnt -r

	最簡單的做法, 是 compile kernel 時直接指定 default nls, 

	這樣 codepage, iocharset 都不用加.

Reply to: