ubuntu作服务器如何设置中文编码?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
showgo
帖子: 295
注册时间: 2008-01-11 14:25
来自: 江苏工业学院
联系:

ubuntu作服务器如何设置中文编码?

#1

帖子 showgo » 2009-06-14 18:23

如题
本人用ubuntu9.04 desktop+xampp(http://www.apachefriends.org/zh_cn/xampp-linux.html)搭建了一个lampp环境
但是碰到了麻烦的编码问题

ubuntu默认使用UTF-8
但,在这样的环境win的机器访问无论是ftp(由proftp提供)还是文件夹的index(我在apache里面设置了允许index)
中文全部是乱码
网上查找了几篇文章
http://linux.chinaunix.net/techdoc/syst ... 9673.shtml
http://bbs.jpu.edu.cn/weadmin/ihipop/2009/06/14/85/
http://hi.baidu.com/caozhibin/blog/item ... f3134.html
什么/etc/environment
/etc/profile阿都照做了
无效
乱码依旧
虽然从ubuntutweak看已经是GBK编码系列了
可清那位过来人帮忙
anduony
帖子: 3
注册时间: 2009-06-24 19:07

Re: ubuntu作服务器如何设置中文编码?

#2

帖子 anduony » 2009-06-29 21:51

我也期待解决
头像
hamaburg
帖子: 284
注册时间: 2006-06-30 12:52

Re: ubuntu作服务器如何设置中文编码?

#3

帖子 hamaburg » 2009-06-30 11:21

启动 lampp 是不是直接在 shell中 /opt/lampp/lamp start 这样?

试试看

代码: 全选

LANG=C /opt/lampp/lampp start 
启动
头像
showgo
帖子: 295
注册时间: 2008-01-11 14:25
来自: 江苏工业学院
联系:

Re: ubuntu作服务器如何设置中文编码?

#4

帖子 showgo » 2009-06-30 18:22

hamaburg 写了:启动 lampp 是不是直接在 shell中 /opt/lampp/lamp start 这样?

试试看

代码: 全选

LANG=C /opt/lampp/lampp start 
启动
我试试看看 :em06
头像
showgo
帖子: 295
注册时间: 2008-01-11 14:25
来自: 江苏工业学院
联系:

Re: ubuntu作服务器如何设置中文编码?

#5

帖子 showgo » 2009-06-30 18:25

hamaburg 写了:启动 lampp 是不是直接在 shell中 /opt/lampp/lamp start 这样?

试试看

代码: 全选

LANG=C /opt/lampp/lampp start 
启动
这样没用吧

我要改变的是系统字符编码

比如FTP的文件存储,文件名如果是UFT-8,在win下面用资源管理器访问就是乱码


我要解决ubuntu默认的系统编码问题啊

不是xampp的语言问题,继续求解
回复