[CUBBY-178] リクエストのURIに日本語が含まれると文字化けする Created: 2008-08-29 Updated: 2009-07-05 Resolved: 2008-09-07 |
|
| Status: | Closed |
| Project: | Cubby |
| Component/s: | Core |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | 1.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | agata | Assignee: | baba |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
[cubby-user:84] URLに日本語を含めたときに文字化けします cubbyを1.0.0から1.1.0にバージョンアップしたところ 通常のパラメータはEncodingFilterが効いているため、文字化けしませんが、 ・メソッド /") 現状、下記のコードを入れて回避しています。 1.0.0のときは文字化けしていなかったので、 |
| Comments |
| Comment by baba [ 2008-09-07 ] |
|
ドキュメントのセットアップ、移行ガイドに追記しました。 |
| Comment by baba [ 2008-09-07 ] |
|
上記設定はサーブレットコンテナ全体に対しての設定となるので、org.seasar.cubby.filter.EncodingFilter を追加して、エンコードを指定できるようにしました。
|
| Comment by baba [ 2008-09-07 ] |
|
Tomcat ならば、conf/server.xml の Connector ディレクティブに URIEncoding でエンコーディングを設定することで、getServletPath() と getPathInfo() で指定されたデコードされた文字列を取得できます。 <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" /> |
| Comment by Anonymous [ 2008-08-29 ] |
|
1.0.x では HttpServletRequest#getRequestURI を使っていました。 |