|
|
|
|
![]() ![]() |
![]() ![]() ![]() Group: Members
Posts: 43 Joined: 15-November 04 Member No.: 2,292 |
Post
#1
Feb 9 2005, 06:34 PM
I have a problem with the charset in my php page... firstly the whole site included .html and .php didn't automaticly get the right charset i put in the meta content so I added a .htaccess file CODE AddDefaultCharset Big5 then it works fine with the .html file extension... but not my php file... so i added another line in .htaccess file CODE AddCharset Big5 .php but still not working... there is something i wondering... coz my link to the php file is "foo.php?A=B" would that be the problem that the .htaccess file dun see it as a normal .php? Plz help this is annoying me for the whole day... |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 378 Joined: 8-January 05 Member No.: 3,174 |
Post
#2
Feb 9 2005, 09:17 PM
Strange, it looks like you've done the right thing with AddCharset, but since it isn't working perhaps you can add: AddType 'text/html; charset=Big5' php to your .htaccess file instead? Another solution would be to set the following at the beginning of your php documents: CODE <?php header("Content-Type: text/html; charset=Big5"); ?> It's important that you do that before sending anything to the client (before any content). And make sure that you don't have something like: "<meta http-equiv="Content-Type" content="text/html;charset=utf-8">" in the head of your html. THat might screw things up as well. |
![]() ![]() ![]() Group: Members
Posts: 43 Joined: 15-November 04 Member No.: 2,292 |
Post
#3
Feb 14 2005, 01:07 AM
i solved the problem... i sent a mail to the support of my hosting... actually the problem is not about the .htaccess QUOTE We use the CGI version of PHP and some .htaccess changes won't affect PHP files due to the order of processing. So I have removed the .htaccess and moved the AddDefaultCharset Big5 line into the pre loaded Apache configuration for your site. that what i get from them... CGI version of PHP... never know about it.. anyway thanx bjrn |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
2 | (G)Pradeep Yadav | 245 | 29th August 2009 - 12:04 PM Last post by: minimcmonkey |
|||
![]() |
11 | velma | 1,909 | 14th August 2009 - 12:14 PM Last post by: sheepdog |
|||
![]() |
4 | hatebreed | 9,704 | 10th August 2004 - 11:10 AM Last post by: hatebreed |
|||
![]() |
1 | mmbg | 7,158 | 13th August 2004 - 06:01 PM Last post by: odomike |
|||
![]() |
1 | SilverBoarder | 8,687 | 17th August 2004 - 04:05 PM Last post by: odomike |
|||
![]() |
3 | Mario | 7,398 | 21st August 2004 - 01:31 PM Last post by: X3r0X |
|||
![]() |
3 | Vacant | 7,857 | 26th August 2004 - 09:09 AM Last post by: Vacant |
|||
![]() |
9 | Eric Straven | 8,802 | 29th August 2004 - 07:28 PM Last post by: wassie |
|||
![]() |
7 | truvu17 | 8,268 | 1st May 2006 - 03:20 PM Last post by: shadowx |
|||
![]() |
3 | GhostKillerX | 6,787 | 24th September 2004 - 01:01 AM Last post by: akz |
|||
![]() |
1 | truvu17 | 8,393 | 21st September 2004 - 09:12 AM Last post by: OpaQue |
|||
![]() |
1 | -Omenessence- | 8,049 | 10th March 2005 - 04:39 AM Last post by: snlildude87 |
|||
![]() |
7 | -Omenessence- | 5,246 | 15th November 2004 - 01:36 PM Last post by: tihu |
|||
![]() |
1 | pollux1er | 2,198 | 24th July 2007 - 11:13 PM Last post by: matak |
|||
![]() |
6 | -Omenessence- | 8,196 | 26th September 2004 - 08:37 AM Last post by: Spectre |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 10:39 AM |
Web Hosting Powered by ComputingHost.com.