Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Arabic Text Problem --- Urgent ---

Thread view: 
Khan - 01 May 2006 13:52 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.