[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Reversing Arabic text

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
nikhilbansal
Asked:
nikhilbansal
1 Solution
 
CEHJCommented:
Use a StringBuilder. If the text is English, call append, if it's Arabic, call insert at offset StringBuilder.length - 1
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now