Solved

Reversing Arabic text

Posted on 2006-06-17
3
263 Views
Last Modified: 2010-03-31
Hi All,

I'm stuck up in a problem for past 3 days. I do have a file which contains English as well as Arabic  data. Now the Arabic data has been reversed which I need to set right i.e. instead of appearing from R-L the Arabic data is from L-R.

For example, the arabic text is in double quotes, in brackets ().

I'm finding it quite difficult to write a logic for it.

Can anyone share some inputs or some sample code.

I badly need some help.

Regards

Nikhil Bansal  
0
Comment
Question by:nikhilbansal
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 25 total points
ID: 16928120
Use a StringBuilder. If the text is English, call append, if it's Arabic, call insert at offset StringBuilder.length - 1
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 90
configure dependency in POM for new database 3 25
Error in @AspectJ Based AOP with Spring 2 13
Chrome and Firefox Java 5 32
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)
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

773 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