Current time: 11-23-2024, 03:09 PM Hello There, Guest! (LoginRegister)


Post Reply 
Charset problem
Author Message
soringo Offline
Junior Member
*

Posts: 33
Joined: Feb 2007
Reputation: 0
Post: #1
Charset problem
Hi there. I have a problem with special charset and I dont know how to fix it.

I have two identical site with special charset. One it's working but the other one not. In my php.ini for this sites I have default_mimetype = "text/html" ;default_charset = "iso-8859-2"

I have to mention that I've changed charset for all of them and nothing happend.

Please give me an advise.

Thx Sorin
07-28-2007 04:17 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #2
RE: Charset problem
1. if it is not a PHP script then check apache's config
2. otherwise, make sure the default_charset's line is not commented ( ; )
3. you can always fix the charset with a .htaccess
07-29-2007 02:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
soringo Offline
Junior Member
*

Posts: 33
Joined: Feb 2007
Reputation: 0
Post: #3
RE: Charset problem
raphael Wrote:1. if it is not a PHP script then check apache's config
2. otherwise, make sure the default_charset's line is not commented ( ; )
3. you can always fix the charset with a .htaccess


Wow...that's another problem...when I put a .htaccess on site dir I get the "internal server error" 500.
07-30-2007 03:55 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #4
RE: Charset problem
it depends on what you set on your .htaccess.
Remember that fastcgi+php-cgi is being used, so PHP settings in .htaccess files will not be parsed and apache will throw an error if mod_php isn't loaded
07-31-2007 01:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
soringo Offline
Junior Member
*

Posts: 33
Joined: Feb 2007
Reputation: 0
Post: #5
RE: Charset problem
raphael Wrote:it depends on what you set on your .htaccess.
Remember that fastcgi+php-cgi is being used, so PHP settings in .htaccess files will not be parsed and apache will throw an error if mod_php isn't loaded

Hi...I dont use .htaccess ...I use fcgi conf.../var/www/fcgi/domain.tld/php5/php.ini.

If I have one domain and lots of subs and each have a different charset there is a problem ....doesn't matter how is default_mimetype, default_charset.

An real example:
domain.tld use utf-8
sub1 use windows-1250
sub2 use iso-8859-1
sub3 use iso-8859-2

What shoud I set in php.ini for this domain.tld ?

thx
07-31-2007 02:50 AM
Find all posts by this user Quote this message in a reply
soringo Offline
Junior Member
*

Posts: 33
Joined: Feb 2007
Reputation: 0
Post: #6
RE: Charset problem
Ok...problem solved. I found the bug...mistype in php.ini.
07-31-2007 03:14 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)