Solved

processing Arabic Text in Java

Posted on 2010-09-21
8
394 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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 26

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

759 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

19 Experts available now in Live!

Get 1:1 Help Now