473,765 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php charset problem

KC
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.

Thanks
KC

Oct 23 '05 #1
1 1928
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

4
6199
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 recognised - PHP page which just prints out the html: charset is not properly recognised (ISO charset is...
12
3746
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 MySql database is UTF-8? I'm taking all user input and using this function on the input: ...
4
867
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 mysql-3.23.56-1.80.src.rpm |cpio -t
0
1779
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?
8
3688
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 to do this using my word processor. Is there a way to do it in an HTML document? Which charset...
37
3968
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 here?
28
3226
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,
7
5979
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 charset="UTF-8"SOME UNICODE HERE</spand> 2) If "NO" for 1), so any way to change the charset of the...
0
1314
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 compleate message (Subject+body): //////////////////////////////////////////// ...
2
2607
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 and japanies charset also. In fact i am not able to apply charset on my div set.
0
9404
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.