>>Alsallam Alukum;
>>How about for the output. does it work or not for <fstream.h>. Please advice.
Oh yes it does ... here is the code that writes arabic letter alif to file...
fstream obj ("file.txt" , ios::out)
int unicode =0x6;
int unicode1=0x27 /* unicode and unicode1 combines to form alif because integer is of 2 bytes in Borland C with VC you can declare them together */
obj<<(char)0xFF;
obj<<(char)0xFE;
obj<<(char)unicode1;
obj<<(char)unicode;
FFFE is for Unicode file and is stored in little endian format and then you can store Alef as 2706 and other characters similarly...
Best Regards
Nadir
Durrani >From: Omar Abdalla <omara at languagecomputer dot com> >Reply-To: Development Discussions <developer at arabeyes dot org> >To: Development Discussions <developer at arabeyes dot org> >Subject: Re: C++ Unicode for arrabic >Date: Tue, 23 Nov 2004 11:22:39 -0600 > >Nadir Durrani wrote: > >>I have recently used C++ (borland C) for my assignments related to >>implement standard collation algorithm and the other assignment was >>related to generating approperiate initial, medial or final shapes >>for a string of unicode ... did this for Urdu and since Urdu uses >>Arabic script so I guess this might addresses what you are looking >>for... I used fstream.h to get
unicode input from file... >> >>Regards... >> >> >> >> >>Durrani >> >From: Omar Abdalla <omara at languagecomputer dot com> >Reply-To: >>Development Discussions <developer at arabeyes dot org> >To: >>developer at arabeyes dot org >Subject: C++ Unicode for arrabic >Date: >>Tue, 23 Nov 2004 10:10:39 -0600 > >Dear everyone, Aldsallam alukum >> > > I would like to find out if any one of you has used c++ for >> >unicode and get wistream and the stream lib to work with unicode. >> >also, I wolud like to see if I need to set the enviroment to >> >recocnize Arabic char. such as terminals and others. Please; let >>me >know if you have an Idea. > >Thanks, Omar Abdalla > >> >_______________________________________________ >Developer >>mailing list
>Developer at arabeyes dot org >> >http://lists.arabeyes.org/mailman/listinfo/developer >> >>------------------------------------------------------------------------ >>Express yourself instantly with MSN Messenger! MSN Messenger >><http://g.msn.com/8HMAEN/2731??PS=47575> Download today it's FREE! >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>Developer mailing list >>Developer at arabeyes dot org >>http://lists.arabeyes.org/mailman/listinfo/developer >> >Alsallam Alukum; > >How about for the output. does it work or not for <fstream.h>. >Please advice. > >Thanks, Omar >_______________________________________________ >Developer mailing list >Developer at arabeyes dot org
>http://lists.arabeyes.org/mailman/listinfo/developer