Re: /index.php をつけないと、文字化けして表示される

2014年8月22日 at 0:24

Chromeの開発者ツールでレスポンスヘッダはどうなってます?こちらのMAMPではこうなってます

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2014 15:19:56 GMT
Server: Apache
X-Powered-By: PHP/5.4.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

Re: /index.php をつけないと、文字化けして表示される

2014年8月22日 at 13:08
↓こうなってました

Remote Address:::1:8888
Request URL:http://localhost:8888/thinkra_net/
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:ja,en-US;q=0.8,en;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Cookie:SQLiteManager_currentLangue=5
Host:localhost:8888
Pragma:no-cache
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36
Response Headersview source
Accept-Ranges:bytes
Connection:Keep-Alive
Content-Length:16965796
Content-Type:text/html
Date:Fri, 22 Aug 2014 04:05:06 GMT
ETag:"2ae448f-102e0a4-4f949f12c8c40"
Keep-Alive:timeout=5, max=100
Last-Modified:Tue, 13 May 2014 15:44:41 GMT
Server:Apache/2.2.26 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.6 PHP/5.5.10 mod_ssl/2.2.26 OpenSSL/0.9.8y DAV/2 mod_perl/2.0.8 Perl/v5.18.2
 

Re: /index.php をつけないと、文字化けして表示される

2014年8月22日 at 14:33
うだうだとMAMP2を使ってたので、この際MAMP PRO3.0.5に上げてみましたが、やはり問題なかったです。

Content-Type: text/html; charset=UTF-8

こうならないのが不思議ですね…。特にAPP_CHARSETの値を変えたりしてないですよね。
 

Re: /index.php をつけないと、文字化けして表示される

2014年8月24日 at 11:46
色々ありがとうございました。

MAMPをアンインストール(Preferences等もすべて削除)し、走っているhttpdを全部強制終了してからインストールしなおすと、OKでした。

お騒がせしました