QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: 三翻领

询问月下刀客及其它高手关于suse编码

[复制链接]
发表于 2005-10-29 22:35:18 | 显示全部楼层
怪了,我这样改了之后,乱码全没了。
把你的/etc/fstab和/etc/sysconfig/language贴出来我看看。
回复

使用道具 举报

 楼主| 发表于 2005-10-29 22:35:19 | 显示全部楼层
bmp里面的MPEG音频插件里面有这么个选项,不知能不能解决,默认是关闭的。还有下面的框里面我该怎么填?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2005-10-29 22:39:49 | 显示全部楼层
/dev/hda8            /boot                ext3       acl,user_xattr        1 2
/dev/hda10           /                    reiserfs   acl,user_xattr        1 1
/dev/hda5            /windows/D           vfat       iocharset=gb2312,codepage=936,users,gid=users,umask=0002, 0 0
/dev/hda6            /windows/E           ntfs       ro,users,gid=users,umask=0002, 0 0
/dev/hda7            /windows/F           vfat       iocharset=gb2312,codepage=936,users,gid=users,umask=0002, 0 0
/dev/hda9            swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/dvd             /media/dvd           subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
none                 /subdomain       subdomainfs noauto         0 0



## Path:        System/Environment/Language
## Description:       
## Type:        string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-
## Default:        ""
## Config:      OpenOffice.org,groff,ispell,kde,kdm3,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.UTF-8"

## Type:        string
## Default:        ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL=""

## Type:        string
## Default:        ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES=""

## Type:        string
## Default:        ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE=""

## Type:        string
## Default:        ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE=""

## Type:        string
## Default:        ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME=""

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC=""

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY=""

## Type:        string
## Default:        ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER=""

## Type:        string(ctype)
## Default:        ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE.
#
ROOT_USES_LANG="ctype"

## Type:        yesno
## Default:     no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type:        string
## Default:     ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="zh_CN"
回复

使用道具 举报

 楼主| 发表于 2005-10-29 22:42:13 | 显示全部楼层
以上都是在安装后默认的状态,我都改回来了,fstab中我把utf8=ture这一项删除了,好像没有影响。
回复

使用道具 举报

发表于 2005-10-29 22:47:48 | 显示全部楼层
问题找到了,local你根本就没改,应该改成这样:

## Path: System/Environment/Language
## Description:
## Type: string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-Cool
## Default: ""
## Config: OpenOffice.org,groff,ispell,kde,kdm3,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY="zh_CN.GB2312"

## Type: string
## Default: ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER="zh_CN.GB2312"

## Type: string(ctype)
## Default: ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE.
#
ROOT_USES_LANG="ctype"

## Type: yesno
## Default: no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type: string
## Default: ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="zh_CN.GB2312"
回复

使用道具 举报

 楼主| 发表于 2005-10-29 23:19:37 | 显示全部楼层
没错,这样改之后,乱码问题 是解决了,而且字体也好看很多,但是win分区里面的文件夹就乱码了,有些txt文件里面也是乱码一推,我把我的fstab贴出来在帮我看看吧。实在感谢。我再把文件夹乱码也贴出来。如果不改的话,win文件夹名正常,列表乱码。总之两者不可得兼。不知道是不是挂载的编码问题。

/dev/hda8            /boot                ext3       acl,user_xattr        1 2
/dev/hda10           /                    reiserfs   acl,user_xattr        1 1
/dev/hda5            /windows/D           vfat       iocharset=gb2312,codepage=936,users,gid=users,umask=0002, 0 0
/dev/hda6            /windows/E           ntfs       ro,users,gid=users,umask=0002, 0 0
/dev/hda7            /windows/F           vfat       iocharset=gb2312,codepage=936,users,gid=users,umask=0002, 0 0
/dev/hda9            swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/dvd             /media/dvd           subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
none                 /subdomain       subdomainfs noauto         0 0

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2005-10-29 23:24:27 | 显示全部楼层
注意ntfs分区是nls=gb2312,而不是iocharset=gb2312
回复

使用道具 举报

 楼主| 发表于 2005-10-29 23:28:24 | 显示全部楼层
其他分区也出现问题啊
回复

使用道具 举报

发表于 2005-10-29 23:45:14 | 显示全部楼层
我把我的/etc/sysconfig/language贴出来,你照着这样改应该不会出错。

## Path:        System/Environment/Language
## Description:       
## Type:        string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-
## Default:        ""
## Config:      OpenOffice.org,groff,ispell,kde,kdm3,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER="zh_CN.GB2312"

## Type:        string(ctype)
## Default:        ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE.
#
ROOT_USES_LANG="yes"

## Type:        yesno
## Default:     no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="yes"

## Type:        string
## Default:     ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="zh_TW,zh_CN"

## Path:        System/Environment/Language
## Type:        string(scim,uim,kinput2,kinput2-canna,kinput2-wnn,nabi,wnn,atokx,xcin,none)
## Default:     ""
#
# A default input method to be used in X11 can be selected here.
# If this variable is set and a script with the same name
# as the value of this variable exists in the directory /etc/X11/xim.d/
# this script is sourced when X11 is started to start an input method.
#
# The special value "none" (/etc/X11/xim.d/none) means:
# Do not use any input method at all.
#
# For more details see the comments at the top of /etc/X11/xim.
#
INPUT_METHOD=""
回复

使用道具 举报

 楼主| 发表于 2005-10-30 00:13:19 | 显示全部楼层
被我改成这样后,居然列表问题解决,超级用户下win文件夹也好了,可是普通用户的文件夹乱码,列表解决。十分不解。我估计手动该一下某些项目把我的普通用户文件夹乱码问题解决就可以了。

## Path:        System/Environment/Language
## Description:       
## Type:        string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-
## Default:        ""
## Config:      OpenOffice.org,groff,ispell,kde,kdm3,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.UTF-8"

## Type:        string
## Default:        ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY="zh_CN.GB2312"

## Type:        string
## Default:        ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER="zh_CN.GB2312"

## Type:        string(ctype)
## Default:        ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE.
#
ROOT_USES_LANG="ctype"

## Type:        yesno
## Default:     no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type:        string
## Default:     ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="zh_CN"
回复

使用道具 举报

 楼主| 发表于 2005-10-30 14:00:34 | 显示全部楼层
谢谢hillwood的帮助,如果改成你的,win分区就不行了。
还有一个我想比较重要的信息。http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=136928
我先把所有设置改回来,使得win分区没问题,播放列表乱码。我运行export LANG=zh_CN.gb2312 && amarok这个命令,然后通过“播放文件”找mp3,发现此时的win分区乱码了(就是说“我的电脑”目录是正常的,通过播放器打开的文件系统浏览win分区就是乱码)。可见的确实编码问题啊。
回复

使用道具 举报

发表于 2005-10-30 14:37:11 | 显示全部楼层
请正常运行amarok,不要使用那个命令。
回复

使用道具 举报

发表于 2005-10-30 14:39:16 | 显示全部楼层
谢谢hillwood的帮助,如果改成你的,win分区就不行了。


另外,win的编码要和locale一致。
回复

使用道具 举报

 楼主| 发表于 2005-10-30 14:45:10 | 显示全部楼层
win编码怎么改?谢谢
回复

使用道具 举报

发表于 2005-10-30 14:52:52 | 显示全部楼层
就是在/etc/fstab加入iocharset=gb2312,codepage=936:
/dev/hdb5            /windows/D           vfat       users,gid=users,umask=0002,iocharset=gb2312,codepage=936 0 0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-15 04:18 , Processed in 0.071017 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表