Results 1 to 4 of 4
- 02-18-2012, 01:10 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 1
- Rep Power
- 0
How to deal with Arabic string in java
Hi every one,
I need to remove arabic diactries from the input text..
I had tried this code but it take to much time to complete,
and it maybe delete wanted characters, also, I had tried using replaceAll() but I did not success with itJava Code:for ( int index = 0 ; index < word.length() ; index++) { char x = word.charAt(index); if ((x >= 'ء' && x <= 'غ') || (x >= 'ف' && x <= 'ي')) wordAfter += x; }
Som is there other ways to remove them, such as using Normalize class???
Thanks
- 02-18-2012, 02:57 PM #2
Re: How to deal with Arabic string in java
Show your attempt, in code.I had tried using replaceAll() but I did not success with it
Learning resource:
Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns
Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-28-2012, 10:38 AM #3
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Re: How to deal with Arabic string in java
I think each character is represented by a byte, not char. Try using the get bytes()
- 04-28-2012, 01:28 PM #4
Similar Threads
-
How do I deal with entries that don't exist
By Jossos in forum New To JavaReplies: 11Last Post: 01-05-2012, 02:34 AM -
How to best deal with large file uploads ?
By HeapSpace in forum Advanced JavaReplies: 36Last Post: 06-08-2011, 07:32 PM -
Arabic to roman and Roman to Arabic Converter Program
By tabako in forum New To JavaReplies: 11Last Post: 11-02-2010, 05:46 PM -
how to display arabic language in java from mysql
By pencariilmu in forum Advanced JavaReplies: 0Last Post: 02-11-2010, 01:20 AM -
I need to be able to deal with functions like matlab
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:37 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks