473,545 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php charset problem


I have a web page contain Chinese characters (charset big5).
If I name the page as mypage.html.big 5 or mypage.big5.htm l
then the browser can identify the charset automatically.

However, if I add "<?php echo <<<END ...mydoc here ... END; ?>"
and name my page as mypage.php.big5 or mypage.big5.php ... well
it doesn't work.

How can I make php or Apache to understand file extension .php.big5
or big5.php.


Oct 23 '05 #1
1 1917
KC (kc*****@gmail. com) wrote:
: Hi,

: I have a web page contain Chinese characters (charset big5).
: If I name the page as mypage.html.big 5 or mypage.big5.htm l
: then the browser can identify the charset automatically.

: However, if I add "<?php echo <<<END ...mydoc here ... END; ?>"
: and name my page as mypage.php.big5 or mypage.big5.php ... well
: it doesn't work.

: How can I make php or Apache to understand file extension .php.big5
: or big5.php.

Since that is a php script, I assume you could use the php "header"
function to send the appropriate mime character set header.

Oct 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Here is what I have tried so far: - Regular html page: charset is properly...
by: lawrence | last post by:
How do I get PHP to tell the server that when I echo text to the screen, I need for the text to be sent as UTF-8? How does Apache know the right encoding when all the text is being generated by PHP? If I build a content management system (I have) and I make sure that all input is encoded as UTF-8, how will the server know that the text in the...
by: Ka | last post by:
I install a mysql server in default installation with latin charset, but I want to use GBK(a chinese charset), so that I can store and search chinese words directly. so, I download, unpack and then rewrite the mysql.spec and then recompile the package mysql-3.23.56-1.80.src.rpm. first, this file contains some files: # rpm2cpio...
by: Wouter | last post by:
Hi, I use Windows XP, Apache2 and MySQL 4.1. I changed my default charset by adding in my php.ini: default-character-set=utf8 Some row inserts now went wrong, so I did remove it again. How can I remove a default charset from a table?
by: Ben Sharvy | last post by:
I don't reallly understand charsets, but I see that you are supposed to declare one. I am putting a paper up in HTML. It uses some special characters, like umlauts and diacriticals. The biggest problem I've had with it is creating characters with lines over them (macrons), as is done to indicate a long vowel sound, for example. There is no way...
by: Haines Brown | last post by:
I understand that <br /> is marginal in CSS, and so am looking for a substitute for the EOL character. I've failed in both approaches and seek advice. The first thing I tried was to use the unicode EOL characer, which is 000A. I figured with was 10 in decimal notation, and so tried: line 1 line 2 No go. What was wrong with my thinking...
by: Xiaotian Sun | last post by:
I added the following line to the header of my html file <meta http-equiv="content-type" content="text/html; charset=utf-8"> hoping browsers will use UTF-8 encoding. But all browsers I tried still use ISO-8859-1. What did I do wrong? Thanks,
by: gmclee | last post by:
Hi there, I am writing a program to load HTML from file and send it to IE directly. I've met some problem in charset setting. Most of HTML have charset "us-ascii", for some reason, some UNICODE TEXT will be inserted into the HTML before sending to IE. The problem is 1) Can I specify special charset for some component, e.g. <span...
by: mubx2000 | last post by:
I Did Some Application (In Symbian C++) To Get Email Message from POP3 Server Using Sockets Engine, The Message Containes (Arabic) Language Text ,Inside the message body It's Charset should be (iso-8859-6) , When I recived the email message I found that the recived charset is (iso-8859-1) which is the Charset for english language Here Is The...
by: praveen2gupta | last post by:
I am developing an Ajax application with multi charset. All data and charset is in the oracle database . I an accessing data using javascript and jsp. jsp page access data from the databse and insrt it in the div tag. when my data is in Big5 charset I an not able to see the data in my div tag. This problem is in some other languages like korian...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.