LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2004, 03:07 AM   #1
ltaotao007
LQ Newbie
 
Registered: Dec 2003
Location: love linux
Posts: 2

Rep: Reputation: 0
Display Chinese Word Error


Evvironment:
RedHat9
httpd-2.0.48
php-4.3.3
--------------------------------------------

httpd.conf File:

AddDefaultCharset GB2312
#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.

# official list of charset names and their respective RFCs.
#
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
--------------------------------------------------
php.ini File £º
; PHP's built-in default is text/html
;default_mimetype = "text/html"
default_charset = "gb2312"
----------------------------------------------------
php File£º
<html>
<head>
<meta http-equiv="content-language" content="zh-CN">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>timedata</title>
</head>
<body>
<?
$current_time=getdate(time());
printf("%dYear %dMonth %dDay %dHours %dMinutes %dSeconds",date("Y"),date("m"),date("d"),$current_time["hours"],$current_time["minutes"],$current_time["seconds"]);
?>
<p>
chineses--->Õâ¸öÖÐÎÄÔõô»ØÊÂ--->Show Error
<body>
--------------------------------------------------
Exclued Result at RedHat and Mozilla£º
2004Year 1Month 2Day 13Hours 44Minutes 39Seconds

chineses--->这个ä¸_文怎么回事--->Show Error
-------------------------------------------------
Why?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to key in chinese word in suse? TigerLinux SUSE / openSUSE 2 10-10-2005 08:31 AM
display chinese in gnome NanoFxJ Linux - Software 4 03-27-2005 09:54 PM
could not display chinese so-fish Linux - Software 8 06-04-2004 06:44 PM
Can't display Chinese in Slackware 9.0 GrimCracker Slackware 15 10-22-2003 08:03 AM
display chinese in console skyevil Debian 1 09-12-2003 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration