LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2012, 06:33 AM   #1
Shahid nx
Member
 
Registered: Jan 2012
Posts: 46

Rep: Reputation: Disabled
How To diffrentialte between english and arabic in c/c++?


He Everyone,
I have one task to do that is im reading some data from file and that file contain some arabic data some English. My task is to to read the file and separate Arabic and English data and write it into two separate files. So please can anybody help me how to know whether data i m reading is English or Arabic.

Thanks,
Shahid nx
 
Old 08-17-2012, 06:46 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,491

Rep: Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429
what kind of file is that? MS Word or something else? You need to know the format of that file.
 
Old 08-17-2012, 06:54 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
If it's a word processor file, then I wonder if the word processor is not the best solution.....you could simply make two copies of the file and use the search and replace tool to delete the characters you don't want.

Otherwise, I assume that anything that is mixed characters like that is in unicode. I visualize operation on the actual byte values is some way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
offline dictionary english-arabic hammam12 Linux - Software 4 12-28-2011 11:41 PM
in fedora core 7 how can i use Arabic besides english Muhammed Linux - Desktop 2 07-27-2007 03:05 AM
creating HTML pages with mix of English & Arabic rblampain Programming 4 06-03-2007 06:22 PM
read english and arabic in terminal gamor Mandriva 2 04-23-2007 04:48 PM
reading both english and arabic in mandriva2007 terminal gamor Linux - Newbie 2 04-23-2007 12:31 PM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration