Click here to Skip to main content
15,922,407 members
Home / Discussions / C#
   

C#

 
GeneralRe: string==C#?YES:NO Pin
saud_a_k12-Jul-04 18:36
saud_a_k12-Jul-04 18:36 
GeneralQuestion about NavigationGraph in UIPAB Pin
Phoenixcp7-Jul-04 21:52
Phoenixcp7-Jul-04 21:52 
GeneralRe: Question about NavigationGraph in UIPAB Pin
Heath Stewart8-Jul-04 5:14
protectorHeath Stewart8-Jul-04 5:14 
GeneralASCII code for Arabic(Farsi) letters Pin
Hovik Melkomian7-Jul-04 21:17
Hovik Melkomian7-Jul-04 21:17 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Heath Stewart8-Jul-04 4:30
protectorHeath Stewart8-Jul-04 4:30 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Hovik Melkomian13-Jul-04 3:29
Hovik Melkomian13-Jul-04 3:29 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Heath Stewart13-Jul-04 3:42
protectorHeath Stewart13-Jul-04 3:42 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Hovik Melkomian13-Jul-04 20:38
Hovik Melkomian13-Jul-04 20:38 
Ok this is what I done.
// Here I get ASCII of my Char 'س' Unicode 1587<br />
// Create two different encodings.<br />
Encoding ascii = Encoding.ASCII;<br />
Encoding enc = Encoding.GetEncoding(1256);<br />
<br />
byte[] asciiBytes = enc.GetBytes("س");

And I have 211 (ASCCI of unocde 1587) witch ok!
Also I have array of bytes in ASCCI mode & I wanna convert them in Unicode 1256.
byte[] unicodeBytes = Encoding.Convert(ascii, enc, asciiBytes);
Now I should have array of bytes in Unicode 1256.
And I should changethem in Strig mode so I do

char[] asciiChars = new char[ascii.GetCharCount(unicodeBytes, 0, unicodeBytes.Length)];<br />
ascii.GetChars(unicodeBytes, 0, unicodeBytes.Length, asciiChars, 0);<br />
string asciiString = new string(asciiChars);

But it gives me ? char & not 'س' Unicode 1587

Did I miss any?!
Tnx for ur time.

AlwaysSmile | :) ,
Hovik Melkomian.
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Heath Stewart14-Jul-04 3:06
protectorHeath Stewart14-Jul-04 3:06 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Hovik Melkomian15-Jul-04 4:24
Hovik Melkomian15-Jul-04 4:24 
GeneralRe: ASCII code for Arabic(Farsi) letters Pin
Heath Stewart19-Jul-04 2:10
protectorHeath Stewart19-Jul-04 2:10 
QuestionHow do Compare two DataTable Pin
jzb7-Jul-04 20:55
jzb7-Jul-04 20:55 
AnswerRe: How do Compare two DataTable Pin
Heath Stewart8-Jul-04 4:03
protectorHeath Stewart8-Jul-04 4:03 
GeneralArticle submission question&#8230; Pin
Ray Cassick7-Jul-04 18:59
Ray Cassick7-Jul-04 18:59 
GeneralRe: Article submission question&#8230; Pin
Heath Stewart8-Jul-04 3:58
protectorHeath Stewart8-Jul-04 3:58 
GeneralC# class and COM+ issue Pin
hatim_ali7-Jul-04 18:57
hatim_ali7-Jul-04 18:57 
Generalabout software error detecting Pin
fu07-Jul-04 18:44
fu07-Jul-04 18:44 
QuestionEnvironment.SpecialFolder ?? Pin
azusakt7-Jul-04 17:45
azusakt7-Jul-04 17:45 
AnswerRe: Environment.SpecialFolder ?? Pin
Judah Gabriel Himango7-Jul-04 18:44
sponsorJudah Gabriel Himango7-Jul-04 18:44 
GeneralHOWTO: UserControl + Form Pin
Binoy Patel7-Jul-04 16:02
Binoy Patel7-Jul-04 16:02 
GeneralOutlook &quot;like&quot; Date Groupings Pin
pgraeve7-Jul-04 12:58
pgraeve7-Jul-04 12:58 
GeneralRe: Outlook &quot;like&quot; Date Groupings Pin
Werdna7-Jul-04 18:55
Werdna7-Jul-04 18:55 
GeneralRe: Outlook &quot;like&quot; Date Groupings Pin
pgraeve8-Jul-04 2:18
pgraeve8-Jul-04 2:18 
GeneralRe: Outlook &quot;like&quot; Date Groupings Pin
Gary Thom8-Jul-04 4:34
Gary Thom8-Jul-04 4:34 
Generalunderline Text in a Button Control Pin
isedf7-Jul-04 12:55
isedf7-Jul-04 12:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.