Support Forum
Welcome, Guest
Please
Lost Password? No account yet? Register
Re:IE6 + Joomla1.5 の SEF-URL 時の日本語の文字化け (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:IE6 + Joomla1.5 の SEF-URL 時の日本語の文字化け
#239
yosei (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
IE6 + Joomla1.5 の SEF-URL 時の日本語の文字化け 3 Months, 2 Weeks ago Karma: 0  
初めまして。

Joomla1.5 でのサイト構築で四苦八苦しています。

ブラウザが IE6 で、サーチエンジンフレンドリーURLを利用した場合、
サイト内検索で日本語を使うと、おかしな文字化けが起こります。

たとえば、http://demo.joomler.net/ で「あいうえお」を検索した場合、
IE7 や Firefox では表示される URL は以下のようになります。
http://demo.joomler.net/component/search/あいうえお.html?ordering=&searchphrase=all

これが、IE6 だと、こんな感じです。
http://demo.joomler.net/component/search/縺ゅ>縺・∴縺・html?ordering=&searchphrase=all

しかも検索も失敗します。

IE6 でも、アドレス欄の URL に直接日本語を書き込んでやれば、正しく検索されます。

たとえば、以下のように。
http://demo.joomler.net/component/search/あいうえお.html?ordering=&searchphrase=all

どういった問題なのでしょうか? 解決策はあるのでしょうか?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#240
Joomler! (User)
Gold Boarder
Posts: 188
graph
User Offline Click here to see the profile of this user
Re:IE6 + Joomla1.5 の SEF-URL 時の日本語の文字化け 3 Months, 2 Weeks ago Karma: 1  
本当ですねぇ~
デモで使っているだけなので気づきませんでした。

これは、Joomla!が受け取った値でさらにリダイレクトさせているのですが、
その際にURLエンコードしていないことが原因です。

方法は、三つ考えました。

  • Javascriptで行う方法
    (本体をHackせずにできるが、サーチワードの履歴にURLエンコードされた文字が残ってしまう。)


  • Javascriptで行って且つ本体もHackする方法
    (本体をHackし、且つサーチワードの履歴にも入力した文字を残す。)


  • Joomla!をHackする方法
    (スマートな方法)


一番簡単なので三つ目を

Root/components/com_search/controller.php 42行目
Code:




のように変更してください。
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#241
yosei (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:IE6 + Joomla1.5 の SEF-URL 時の日本語の文字化け 3 Months, 2 Weeks ago Karma: 0  
早速のご回答ありがとうございます。

すばらしいです。

懸案が一つ解決しました。
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop