Setting default encoding for an NFS share

Applies To: Windows Server 2003 R2

To set default encoding for a shared directory using the Windows interface

  1. Open Windows Explorer: click Start, point to Programs or All Programs, point to Accessories, and then click Windows Explorer.

  2. In the details pane, right-click the shared directory you want to manage.

  3. Click Sharing.

  4. Click NFS Sharing.

  5. In the Encoding list, select the type of encoding to be used for file and directory names in the shared directory. In addition to the default American National Standards Institute (ANSI) encoding, the following encoding is available:

    • BIG5 (Chinese)

    • EUC-JP (Japanese)

    • EUC-KR (Korean)

    • EUC-TW (Chinese)

    • GB2312-80 (Simplified Chinese)

    • KSC5601 (Korean)

    • SHIFT-JIS (Japanese)

  6. If this option is set to ANSI on systems configured for non-English locales, the encoding scheme is set to the default encoding scheme for the locale. The following are the default encoding schemes for the indicated locales:

    • Japanese: SHIFT-JIS

    • Korean: KS_C_5601-1987

    • Simplified Chinese: GB

    • Traditional Chinese: BIG5

To set default encoding for a shared directory using the command line

  1. Open the command prompt.

  2. At the command prompt, type:

    **nfsshare -o encoding={big5|euc-jp|euc-kr|euc-tw|gb2312-80|ksc5601|shift-jis}**sharename

    Argument Description

    sharename

    The name of the directory to share.

    -o encoding=type

    Specifies the default encoding. You must specify one of the following types:

    • big5 (Chinese)

    • euc-jp (Japanese)

    • euc-kr (Korean)

    • euc-tw (Chinese)

    • gb2312-80 (Simplified Chinese)

    • ksc5601 (Korean)

    • shift-jis (Japanese)

    If you do not specify an encoding type, the default encoding scheme is ANSI or, on systems configured for non-English locales, the default encoding scheme for the locale. The following are the default encoding schemes for the indicated locales:

    • Japanese: SHIFT-JIS

    • Korean: KS_C_5601-1987

    • Simplified Chinese: GB2312-80

    • Traditional Chinese: BIG5

    Note

    To view the complete syntax for this command, at a command prompt, type: nfsshare /?