一、安装solaris时用了中文版,用ssh连接中文会出现乱码情况,所以修改solaris默认语言为英文模式
#chmod u+w /etc/default/init
#vi /etc/default/init
$ cat init
#
# Copyright 1992, 1999-2002 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)init.dfl 1.7 02/12/03 SMI"
#
# This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not. To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables. value may
# be enclosed in double quotes (") or single quotes (').
#
TZ=PRC
CMASK=022
LANG=EN //使用英文字体
#LANG=zh_CN.UTF-8 //原来默认的中文&#x
solaris 编码问题(笔记)
最新推荐文章于 2021-07-16 15:14:24 发布
本文主要介绍了在Solaris系统中遇到的编码问题,包括如何将系统默认语言从中文改为英文以解决SSH连接时的乱码问题,以及在处理中文HTTP POST请求时遇到的编码转换挑战。通过分析和实验,提出了两种解决方案,最终采用按底层16进制编码的方式解决了问题。
摘要由CSDN通过智能技术生成