I am using JSTL fmt
taglib to show Tamil characters. But I could not show any Tamil characters. Instead of showing Tamil characters, it's showing question mark characters as in ??????
. I tried for Hindi and it shows question marks as well. What should I do now?
Here is my code. I simply try to print Hello World in Tamil.
fileproperty.properties
:
helloworld=வணக்கம் உலகம்
Hello.jsp
:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org /TR/html4/loose.dtd">
<html>
<fmt:setLocale value="ta-IN"/>
<fmt:setBundle basename="fileproperty"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home</title>
</head>
<body>
<fmt:message key="helloworld"/>
</body>
</html>