wood burning stoves*
The moose likes Struts and the fly likes Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Encoding" Watch "Encoding" New topic
Author

Encoding

Wagner Danda Da Silva Filho
Ranch Hand

Joined: Mar 21, 2003
Posts: 80
Hey folks,

I'm having trouble with Encoding in Struts, specifically with a Dynaform that doesn't handle special chars. Help, please,


SCJP, SCWCD
Wagner Danda Da Silva Filho
Ranch Hand

Joined: Mar 21, 2003
Posts: 80
This time I'll answer myself, this was very easy to solve:

I changes the jsp page directive from:
<%@ page language="java" pageEncoding="UTF-8"%>

To:
<%@ page language="java" pageEncoding="ISO-8859-1"%>

And everything starts to work just fine!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Encoding