There was no PHP mime type, so I added a .php mime type, but it did not have any effect.
Setting a character set in php.ini did not do anything either.
It is just unbelievable how difficult it is to get basic things done with IIS
Since we are to share particulary subjective opinions, for my part I think unbelievable how people who don't know how to use a product (Microsoft especially), blames... the product...
I see it really too often in security threads, performance threads, reliability threads, features threads... just because using (badly most of the time...) a windows workstation everyday, everyone think he's a Microsoft system engineer...
Anyway, if the mime type doesn't fix the problem (mabe something else is missing because it actually should fix your problem), you can try the 'header' PHP function:
Oh, I do not know how to use a Microsoft product? Well, I have yet to see a real solution from you, since you pretend to be the all knower here.
Setting a header in PHP is not a solution to the problem, but rather a way of going around it.
I would say it is a limitation in the software, a scandalous one.
Such a beautiful interface, but so many limitations and other difficulties; I prefer doing some decent work instead of trying to fix the most basic issues someone can think of.
Oh, I do not know how to use a Microsoft product? Well, I have yet to see a real solution from you, since you pretend to be the all knower here.
This one at least.. And I never claim to be "all knower", I'm really far from it, and I love it because it means that I have still more to learn... But I don't accept when someone says MS products are crap just because he can't find the way to do what he wants.
knuupt
Setting a header in PHP is not a solution to the problem, but rather a way of going around it.
I would say it is a limitation in the software, a scandalous one.
A workaround worth more than nothing don't you think? And about the limitation, no, I don't think so, I bet for a misconfiguration somewhere, the first trick I gave should have fix it...
knuupt
Such a beautiful interface, but so many limitations and other difficulties;
That's right : IIS is really sexy! And yes, you may be right when you say there is limitations and difficulties. Most of powerfull softwares have I think... The good news is like always, there is always at least one workaround for every limitation, that's what
makes our job fun...
knuupt
I prefer doing some decent work instead of trying to fix the most basic issues someone can think of.
Feel free : developper (are you?) is a real (hard!) job, sys engineer too.
This message is provided "AS IS" with no warranties, and confers no rights!
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
knuupt
6 Posts
Change charset IIS 7.5
May 02, 2012 01:56 PM|LINK
I would like to change this to: text/html; charset=iso-8859-1
How can I do this?
content-type charset header
fab777
922 Posts
Re: Change charset IIS 7.5
May 03, 2012 08:15 AM|LINK
Hi,
have a look at mime types for '.php' extensions.
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
knuupt
6 Posts
Re: Change charset IIS 7.5
May 03, 2012 04:41 PM|LINK
Setting a character set in php.ini did not do anything either.
knuupt
6 Posts
Re: Change charset IIS 7.5
May 09, 2012 11:06 AM|LINK
I have already looked into switching to Apache and nginx on Windows, but the PHP performance was shit compared to IIS.
If I do not find a solution to this critical problem any time soon, I feel that I am forced to leave Windows in web environments for good.
fab777
922 Posts
Re: Change charset IIS 7.5
May 09, 2012 01:18 PM|LINK
I see it really too often in security threads, performance threads, reliability threads, features threads... just because using (badly most of the time...) a windows workstation everyday, everyone think he's a Microsoft system engineer...
Anyway, if the mime type doesn't fix the problem (mabe something else is missing because it actually should fix your problem), you can try the 'header' PHP function:
header('Content-Type: text/html; charset=iso-8859-1');
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
knuupt
6 Posts
Re: Change charset IIS 7.5
May 09, 2012 05:03 PM|LINK
Setting a header in PHP is not a solution to the problem, but rather a way of going around it.
I would say it is a limitation in the software, a scandalous one.
Such a beautiful interface, but so many limitations and other difficulties; I prefer doing some decent work instead of trying to fix the most basic issues someone can think of.
fab777
922 Posts
Re: Change charset IIS 7.5
May 10, 2012 07:45 AM|LINK
A workaround worth more than nothing don't you think? And about the limitation, no, I don't think so, I bet for a misconfiguration somewhere, the first trick I gave should have fix it... That's right : IIS is really sexy! And yes, you may be right when you say there is limitations and difficulties. Most of powerfull softwares have I think... The good news is like always, there is always at least one workaround for every limitation, that's what makes our job fun...
Feel free : developper (are you?) is a real (hard!) job, sys engineer too.
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI