echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » Unix服务器下Web应用开发所不能够承受之痛:中文乱码问题! 仲子说

2008-03-09

Unix服务器下Web应用开发所不能够承受之痛:中文乱码问题!

Posted in Java, PHP, FreeBSD/Unix服务器 at 19:34 Author:仲远

标签:

????????????????????????????
?????http://www.wangzhongyuan.com/archives/311.html

?????????????????????Unix????Linux??????????????????????????????????????????????????????????????????(??Java)???????????????????????????????????????????Unix??????????????????????“????”?

?????????????????????????????????????????????????????????????????????????????????????????????????gb2312??utf-8????????????????????????????

??????????????????????
1???Unix???(Freebsd)??????????????????????GB2312?
??????????????(??/home/wangzhongyuan)???.bashrc????????export LANG=zh_CN.GB2312????????????????date????????????

2???crontab?????????java??????????????????????
?????????Unix/Linux???crontab????????????????????????????????????????????????????GB2312?????crontab????????????ISO8859-1?
???????.sh?shell??????????????????????
#! /usr/local/bin/bash
. /home/wangzhongyuan/.profile
……
????/home/wangzhongyuan/.profile??????????

3??php???exec/system???????????java??????????????
???????????????crontab????????????????php??exec??system???????????????????????????????????????????????????exec?system?????????????????????????????????????????????????
?????????????????????????????exec??system???????????????????????“export LC_ALL=zh_CN.GB2312 && export LANG=zh_CN.GB2312 && ??????”?
???????????????????exec?????????????????????????

????????????????????????????
?????http://www.wangzhongyuan.com/archives/311.html

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

1 Comment »

  1. 西西 said,

    2008年March9日 at 21:41

    越来越看不懂了,越来越模糊。
    也许就未曾理解,也许就未曾看清。

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word