LoginSignup
7
6

More than 5 years have passed since last update.

JSPテンプレートのキャラセットを変更する

Posted at

windows環境でJSPファイルを自動生成すると、毎回嬉しくないキャラセットが指定されてしまうので、これを変更する事にした。

<%@ page language="java" contentType="text/html; charset=Windows-31J" pageEncoding="Windows-31J"%>

これを、、、

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

こうしたい。

手順

ウィンドウ>設定を開く
Web>JSPファイル>エンコード>ISO 10646/ユニコード(UTF-8)
これで新規に作成したJSPファイルのキャラセットがデフォルトでUTF-8に。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6