Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は 2 つの tomcat 7.0.26 サーバーを持っており、REST 要求を最初 (残りのプラグインを使用した grails アプリケーション) から 2 番目 (残りのサービスの実現) に送信します。
2 番目の tomcat で英語以外の文字のエンコードに問題があります (正しく表示されません)。
REST 要求に UTF-8 エンコーディングを設定するにはどうすればよいですか? REST サービスでエンコーディングをフィルタリングする方法は? 何かアドバイスをいただけますか?
in your method where you do the rest based call you can do
request.setCharacterEncoding("UTF-8") that should do it.