Hi all,
I have a textbox 'remarks' in jsp which has some arabic text.
while pressing the submit button the arabic text is storing in java
string variable.
String rem = request.getParameter("remarks").
but the problem is that, arabic text is saving in java string variable
as strange chars and boxes. because in java message the arabic text is
displaying as boxes.
How can i store that arabic text in java variable in proper form
without appearing as boxes.
Thanx.
Ike - 01 May 2006 14:57 GMT
I believe yo umust use request.getBytes(some_proper_encoding_here) to
convert the string to bytes, then to a string or char array from there.
hilz - 01 May 2006 16:24 GMT
> Hi all,
>
[quoted text clipped - 12 lines]
>
> Thanx.
I think it is a font issue.
you need to use a font that supports Arabic characters to be able to see
them correctly.
Sairam - 01 May 2006 17:27 GMT
The arabic text is NOT displayed but is saved, properly.
Addding the following html code immediately after <head> could help.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Khan - 03 May 2006 07:05 GMT
Problem solved, i was using <charset=windows-1256"> instead of UTF-8.
Thanx 4 reply.