Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

processing Arabic Text in Java

Posted on 2010-09-21
8
Medium Priority
?
451 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 1000 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

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 1000 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

688 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