Solved

processing Arabic Text in Java

Posted on 2010-09-21
8
404 Views
Last Modified: 2012-05-10
I have text file which Arabic text in it.
When I read those lines and copy into another file using Java.
The Lines are written in Banckwards. How I handle these.
0
Comment
Question by:s3h
8 Comments
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 33724668
you need to specify the right encoding which was used to write to the file!
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33724733
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33724841
The medium in which you're viewing it needs to know it's Arabic. What is that medium?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:s3h
ID: 33725327
Infact its the email body of the msg file. Our Framework returns the body of the email as string object.
Is there any utility in java which can tell us the language of string.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33725381
the mail content-type will tell you which encoding the body/subject is in
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 33728025
>>Infact its the email body of the msg file.

Then the mail client needs to support Arabic. Try

http://www.w3schools.com/Css/pr_text_direction.asp

Set the charset to UTF-8
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 37419058
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now