Solved

why query string value japanese char  value not getting in java class

Posted on 2010-08-26
2
439 Views
Last Modified: 2012-05-10
Hi

why query string japanese char  value not getting in java class . it give junk value

http://localhost:8082/Bio-Origin/shohinSearch.do?action=searchButton&shohinCode=(¿¿)&window=0
0
Comment
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 33536741
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 250 total points
ID: 33539058
if you are creating the query String using javascript, then make sure that you escape the values first.

eg

var value = "some japanese chars";

queryString = "key=" + escape(value);

examples
http://tagunov.tripod.com/i18n/i18n.html#parameters-general
http://www.trupti.com/index.php/it/java/jsp/Encoding-special-characters-in-userinput-or-on-server.php
http://www.jguru.com/faq/view.jsp?EID=1030399.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question