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.

Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.