*「%xy」という形式のシーケンスは、バイトの表現として扱う
<<blockquote>>JavaScript の encodeURIComponent、decodeURIComponent に対応<</blockquote>>
===JSP===
====<<%@ page contentType="text/html; charset=Shift-JIS" %>>====
出力の文字エンコーディングをpage指示子を用いて設定します。
====<<%@ page pageEncoding="Shift-JIS" %> > ====
取り込むファイルの文字エンコーディングを指定
<<blockquote>>encodeURIでは、"&"や"+"や"="などの文字をエンコードしないので、GETやPOSTメソッドで利用するときは、encodeURIComponentを使用する。こちらは、英数以外は、"- _ . ! ~ * ' ( ) "のみがエスケープされない。<</blockquote>>
====HTML特殊文字の処理====