Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web services question... Pin
Manster15-Apr-04 3:52
Manster15-Apr-04 3:52 
GeneralRe: Web services question... Pin
Heath Stewart15-Apr-04 3:57
protectorHeath Stewart15-Apr-04 3:57 
GeneralRe: Web services question... Pin
Manster15-Apr-04 4:02
Manster15-Apr-04 4:02 
Generalmultiple entries in Add/Remove Programs Pin
econnor14-Apr-04 8:58
econnor14-Apr-04 8:58 
GeneralRe: multiple entries in Add/Remove Programs Pin
Heath Stewart14-Apr-04 9:03
protectorHeath Stewart14-Apr-04 9:03 
GeneralP/Invoke Pin
Dominik Reichl14-Apr-04 6:58
Dominik Reichl14-Apr-04 6:58 
GeneralRe: P/Invoke Pin
Heath Stewart14-Apr-04 7:41
protectorHeath Stewart14-Apr-04 7:41 
Generalconvert unicode to ascii Pin
eranas14-Apr-04 6:57
eranas14-Apr-04 6:57 
Hi,
when i do this:

string unicodeString = "This string contains the unicode character";

// Create two different encodings.
Encoding ascii = Encoding.ASCII;
Encoding unicode = Encoding.Unicode;

// Convert the string into a byte[].
byte[] unicodeBytes = unicode.GetBytes(unicodeString);

// Perform the conversion from one encoding to the other.
byte[] asciiBytes = Encoding.Convert(unicode, ascii, unicodeBytes);

and I try to convert a Hebrew string to ascii I got in the asciiBytes
the number 69 (equals to '?')
but in english it's work just fine.
What is the problem?

Thank you in advanced,
Eran.
GeneralRe: convert unicode to ascii Pin
Heath Stewart14-Apr-04 7:24
protectorHeath Stewart14-Apr-04 7:24 
GeneralScrolling and background image Pin
Flack14-Apr-04 6:53
Flack14-Apr-04 6:53 
GeneralRe: Scrolling and background image Pin
Heath Stewart14-Apr-04 7:26
protectorHeath Stewart14-Apr-04 7:26 
GeneralMultiple Forms\Views Pin
SanShou14-Apr-04 6:17
SanShou14-Apr-04 6:17 
GeneralRe: Multiple Forms\Views Pin
CWIZO14-Apr-04 6:42
CWIZO14-Apr-04 6:42 
GeneralRe: Multiple Forms\Views Pin
14-Apr-04 8:17
suss14-Apr-04 8:17 
GeneralDistributing Application Pin
Jason Pyke14-Apr-04 5:57
Jason Pyke14-Apr-04 5:57 
GeneralRe: Distributing Application Pin
Heath Stewart14-Apr-04 7:31
protectorHeath Stewart14-Apr-04 7:31 
GeneralRe: Distributing Application Pin
Anonymous14-Apr-04 8:40
Anonymous14-Apr-04 8:40 
Generalprint a .tiff file Pin
cmarmr14-Apr-04 5:06
cmarmr14-Apr-04 5:06 
GeneralRe: print a .tiff file Pin
Mazdak14-Apr-04 6:05
Mazdak14-Apr-04 6:05 
GeneralEncrypting text data to a file Pin
Jon G14-Apr-04 4:20
Jon G14-Apr-04 4:20 
GeneralRe: Encrypting text data to a file Pin
Heath Stewart14-Apr-04 4:30
protectorHeath Stewart14-Apr-04 4:30 
GeneralGUI design the way forward for MS Pin
Andy H14-Apr-04 4:07
Andy H14-Apr-04 4:07 
GeneralRe: GUI design the way forward for MS Pin
Heath Stewart14-Apr-04 4:16
protectorHeath Stewart14-Apr-04 4:16 
GeneralRe: GUI design the way forward for MS Pin
hxxbin14-Apr-04 4:21
hxxbin14-Apr-04 4:21 
GeneralRe: GUI design the way forward for MS Pin
Judah Gabriel Himango14-Apr-04 5:48
sponsorJudah Gabriel Himango14-Apr-04 5:48 

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.