aspose file tools
The moose likes Java in General and the fly likes Problem reading international characters from input form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Problem reading international characters from input form

Pushker Chaubey
Ranch Hand

Joined: Dec 06, 2006
Posts: 53
Hi experts,

I have a screen where user can supply any character in a textarea. A char may be ascii char or some japanese char.
On the server side I am trying to read input string by request.getParameter() method; And then I am setting this string into a preparedstatement to store value in database.
I have mentioned charset of html page as utf-8. Also, My database has been configured to store utf encode chars (And While setting up the connection I am setting the correct encoding UTF to specify the client encoding, results encoding etc)

When I read back the string on the screen. I do not see what I entered. However ascii characters are being read back from database and being shown on screen properly.

Please tell me where am I missing?
[ May 12, 2008: Message edited by: Pushker Chaubey ]

Regards,<br />Pushker<br /> <br />SCBCD 5.0 90%<br />SCWCD 5.0 89%<br />SCJP 5.0 90%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem reading international characters from input form
 
Similar Threads
finding byte[] in subset of another byte[]
Reading mixed chars (characters from various charset) from one single form.
B&S: My thoughts and final decision on character encoding
NLS characters lost when storing xml from java to filesystem
Understanding Byte Data and Character Encoding