Solved

processing Arabic Text in Java

Posted on 2010-09-21
8
438 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

635 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