Solved

Reversing Arabic text

Posted on 2006-06-17
3
262 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
firstChar challenge 13 86
Starting to learn JAVA, 7 48
Securing Jmx Console and web console 2 48
backtracking recursion  code 19 41
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.

747 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