Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of garbled codes in Suse

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

How to solve the Suse Chinese garbled problem, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

With the deepening of our study of Suse linux, we are also faced with many problems. What we are going to talk about today is the problem of Chinese garbled code in Suse. Suse linux has a lot of knowledge that we need to understand, so that we can better apply it to our study and life.

Method 1:

To solve the problem of Chinese garbled code in Suse graphics terminal, I use Suse linux enterpise server 10 to open a terminal to run the program written by myself when using xwindows. The program interface has Chinese, which can be displayed as garbled code, but can be displayed in Chinese on the serial port terminal.

Solution:

"computer"-- > "YaST2 Control Center"-- > "system"-- > "/ etc/sysconfig Editor"-- > "system"-- > "Environment"-> Language ", set" RC_LANG "to" zh_CN.GB2312 ". Restart the system.

This method sets the terminal in xwindows mode to solve the garbled problem, but not in character interface mode, and is working on it.

Method 2:

First of all, make sure that your system code is Chinese, such as GB2312,GBK. If you are not clear, please enter locale under the terminal to check, not just modify it. Here, I provide the modification method under Suse: start the Yast2 control center, open "system"-- > "/ etc/sysconfig Editor", expand the "System Environment Language" item, change all the values of the items you start with RC to GB2312, and then modify the / etc/fstab file to modify the parameters of the Windows partition like this: / dev/hdb1 / windows/C vfat defaults,iocharset=gb2312,codepage=936 0 0

My fstab (there are many disks)

/ dev/hdc7 / reiserfs acl,user_xattr 1 1

/ dev/hdc1 / windows/C vfat users,gid=users,umask=0002,utf8=true,codepage=936 00

/ dev/hdc5 / windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 00

/ dev/hdc8 / windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 00

/ dev/hdc9 / windows/F ntfs ro,users,gid=users,umask=0002,nls=utf8 00

/ dev/hdc10 / windows/G ntfs ro,users,gid=users,umask=0002,nls=utf8 00

/ dev/hdc6 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/cdrom / media/cdrom subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

/ dev/dvdram / media/dvdram subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

None / subdomain subdomainfs noauto 0 0

Modify the red part and change it to gb2312

Pay attention to the permission problem when changing it, change it to root user, or add RW permission to yourself.

Set-configure amaroK, select "ID3v1" and "shoutcast metadata", and change the encoding to GB2312.

After reading the above, do you know how to solve the problem of garbled codes in Suse? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report