Click here to Skip to main content
15,886,100 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Is it possible? Pin
Charlie Williams16-Apr-04 10:54
Charlie Williams16-Apr-04 10:54 
AnswerRe: Is it possible? Pin
Renjith Ramachandran17-Apr-04 16:30
Renjith Ramachandran17-Apr-04 16:30 
GeneralServer GC vs. Workstation GC Pin
jqd200115-Apr-04 9:08
jqd200115-Apr-04 9:08 
GeneralRe: Server GC vs. Workstation GC Pin
Mike Dimmick15-Apr-04 9:24
Mike Dimmick15-Apr-04 9:24 
GeneralRe: Server GC vs. Workstation GC Pin
jqd200115-Apr-04 9:55
jqd200115-Apr-04 9:55 
GeneralSending a custom message to .NET Pin
MarkSPA15-Apr-04 7:41
MarkSPA15-Apr-04 7:41 
Generalsetup project Pin
Dpriya15-Apr-04 3:01
Dpriya15-Apr-04 3:01 
Generalconvert unicode to ascii Pin
eranas14-Apr-04 6:58
eranas14-Apr-04 6:58 
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
Steven Campbell14-Apr-04 14:22
Steven Campbell14-Apr-04 14:22 
Generalascii to unicode Pin
Maverick14-Apr-04 18:43
Maverick14-Apr-04 18:43 
GeneralRe: ascii to unicode Pin
Steven Campbell15-Apr-04 2:44
Steven Campbell15-Apr-04 2:44 
GeneralRe: ascii to unicode Pin
Maverick18-Apr-04 20:25
Maverick18-Apr-04 20:25 
GeneralRe: convert unicode to ascii Pin
eranas14-Apr-04 20:26
eranas14-Apr-04 20:26 
GeneralRe: convert unicode to ascii Pin
Steven Campbell15-Apr-04 2:39
Steven Campbell15-Apr-04 2:39 
GeneralRe: convert unicode to ascii Pin
Mike Dimmick15-Apr-04 2:23
Mike Dimmick15-Apr-04 2:23 
GeneralFTP from the server side Pin
s67713-Apr-04 23:59
s67713-Apr-04 23:59 
GeneralRe: FTP from the server side Pin
Mike Dimmick14-Apr-04 5:03
Mike Dimmick14-Apr-04 5:03 
GeneralRe: FTP from the server side Pin
s67714-Apr-04 8:38
s67714-Apr-04 8:38 
GeneralRe: FTP from the server side Pin
Roman Rodov14-Apr-04 15:22
Roman Rodov14-Apr-04 15:22 
General"Controls created on one thread cannot be... & COM Pin
Maverick13-Apr-04 21:45
Maverick13-Apr-04 21:45 
GeneralRe: "Controls created on one thread cannot be... & COM Pin
SJ_Phoenix15-Apr-04 9:38
SJ_Phoenix15-Apr-04 9:38 
QuestionImpossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 8:27
Steven Campbell13-Apr-04 8:27 
AnswerRe: Impossible to inherit from HttpWebRequest? Pin
Mike Dimmick13-Apr-04 9:26
Mike Dimmick13-Apr-04 9:26 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 9:59
Steven Campbell13-Apr-04 9:59 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Abel Braaksma11-Nov-11 2:20
Abel Braaksma11-Nov-11 2:20 

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.