File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
@page contentType="text/html; charset=UTF-8" ... seems not working
Joined: Jan 30, 2006
Jun 27, 2007 02:47:00
I experienced problem with page ecoding- some characters weren't rendered properly.
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
directive set but it didn't help. The only solution I have found it to set http header manualy like that:
<% response.setHeader("Content-Type", "text/html; charset=utf-8"); %>
So the question is why <%@ page contentType=...%> does not affect http headers? And if it does not intent to what is it for?
App server -
Tnaks in advance
I agree. Here's the link:
subject: @page contentType="text/html; charset=UTF-8" ... seems not working
Forwarding Response from Servlet to JSP
How to force encoding of web browser to UTF-8
Unicode convert problem with Jboss in Linux
Struts 2: Encoding UTF-8 problems
how can i choose the right encoding to read arabic
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014