Home
TeamSite
character encoding problem
LeSmou
hi,
my problem:
if i submit a html-form (input fields contain special characters (e.g.german)) and read out the values in the called jsp via 'request.getParameter()', i don't get proper characters.
my code-snippet (presentation template):
...
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
...
<head>
...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...
</head>
...
<form action="..." method="post">
...
</form>
...
any ideas why i don't get the characters the way i typed them in?
thanks in advance,
lesmou
Find more posts tagged with
Comments
Migrateduser
What you're doing sounds right, but do you see the following page okay?
http://www.slovo.info/testuni.htm
What IS being displayed in your generated JSP in place of those German characters?
Dave
Current Environment(s):
(1) TS 6.1 SP2 on W2K3
(2) TS 6.1 SP2 on W2K
LeSmou
yes, i do.
'ö' is displayed as 'ä'.
Edited by LeSmou on 03/07/05 08:45 AM (server time).
Migrateduser
On your generated page, are you getting blank characters, junk, or square boxes?
Actually, the most effective thing might be for you to attach your generated JSP only in your next post.
Dave
Current Environment(s):
(1) TS 6.1 SP2 on W2K3
(2) TS 6.1 SP2 on W2K
Migrateduser
Hi.
try with <?xml version="1.0" encoding="UTF-8"?>, it shd work.
as i also worked on Internationalization and with french and german Chars in my Presentation template.
let me know if it fails.
RG
rodigz
Hi,
I'm ecnountering the same problem in my preview.
I have <?xml version="1.0" encoding="UTF-8"?> in my tpl but chinese characters and other special characters are not showing up.
thanks.
Adam Stoller
Out of curioisity, have you verified that your browser is using UTF-8 encoding? A number of browsers out there let you specify what encoding to use when rendering pages and not all of them default to UTF-8...
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
rodigz
yes..i'm sure that my browser is in utf-8