|
-
request.getParameter("x") character conversion problem
Hi there,
I have a well working servlet application and a little bug: in the Servlet's
doGet mehtod, the parX = request.getparameter("x");
gives me the value of HTTP parameter "x", but I get ?s (question marks) instead
of two special Hungarian characters.
I use
PrintWriter out = new PrintWriter (new OutputStreamWriter(response.getOutputStream(),"Cp1250"));
instead of
PrintWriter out = new PrintWriter (response.getOutputStream());
and this way the output can contain fine Hungarian special characters, but
my problem is about is the input stream...
Any idea is highly appreciated.
Milan Horvath
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks