JSP - UTF-8 does not work on my web page

11 points
Created by:

1. Problem description

When I use tomcat with JSP and I open my web page in browser some local characters doesn't work.

2. Problem solution

Use for each JSP file following header:

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

Note: content type information should be placed at begining of each *.jsp file.

Alternative titles

  1. UTF-8 does not work with JSP
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂