Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001813 [Resin] minor always 06-22-07 00:06 07-26-07 14:21
Reporter jr_rajan View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 2.1.x
Summary 0001813: Character Encoding (UTF - 8) Problem in 2.1.16 Version
Description Hi,

I'm using 2.1.16 version and my application supports Multilingual.

I've described my issue as follows:

After entering some chinese characters in (Textarea) jsp and press the submit button, it submits to the same jsp and from there it includes java file for updation in the database. It stored some strange characters in database and also displays the same strange characters in the jsp.

I've gone thru the sun forum and i could see , if i add the following lines of code in jsp, it will work perfect

<%@ page contentType="text/html; charset=utf8" %>

request.setCharacterEncoding("UTF-8"); should be the first line in jsp after directives.

I did the same thing in jsp, it works fine in tomcat ( previously i was facing the same problem over there also ). where as in Resin it didn't work.

I could see the following in one more forum.

"Try setting LC_CTYPE=en_US.UTF-8 in httpd.sh. Don't forget to export
the variable."

But i'm using windows version. above is for linux version.

Could any one provide me the exact solution to solve this issue.

I've attached the source files also for your review.


Many Thanks,
Rhenatas.





Additional Information
Attached Files  C:\\Documents and Settings\\rhenatasrajan\\Desktop\\Resin\\messageEdit.jsp [^] (1,789 bytes) 06-22-07 00:06
 C:\\Documents and Settings\\rhenatasrajan\\Desktop\\Resin\\messageUpdate.java [^] (6,222 bytes) 06-22-07 00:07

- Relationships

- Notes
(0002140)
ferg
07-26-07 14:21

Already fixed in the 3.1 branch.
 

- Issue History
Date Modified Username Field Change
06-22-07 00:06 jr_rajan New Issue
06-22-07 00:06 jr_rajan File Added: C:\\Documents and Settings\\rhenatasrajan\\Desktop\\Resin\\messageEdit.jsp
06-22-07 00:07 jr_rajan File Added: C:\\Documents and Settings\\rhenatasrajan\\Desktop\\Resin\\messageUpdate.java
06-22-07 00:07 jr_rajan Issue Monitored: jr_rajan
07-26-07 14:21 ferg Note Added: 0002140
07-26-07 14:21 ferg Assigned To  => ferg
07-26-07 14:21 ferg Status new => closed
07-26-07 14:21 ferg Resolution open => fixed
07-26-07 14:21 ferg Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker