Hi, I have a problem with encoding.
I had such problems in my Struts app so i made a simple test form.
It has one field named for example "city".
The encoding for the page is set to utf-8:

<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html locale="true">
<head>
<html:base/>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</head>

The problem is , when I enter into the text fileld "city" a string that
contains my national chars (I am from Poland).
Then after submiting I want to get that value from the request or from
DynaBean but I get smething like this:
A?Ä?A?AoÄ?
When the forward works because for example the validation errors occurs and
I am forwarded to the same jsp page,
I have the field "city" , that formerly  was filled correctly,now with this
wrong encoded String  :(
Please help
Regards Bart



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to