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

.NET (Core and Framework)

 
Generalconvert unicode to ascii Pin
eranas14-Apr-04 6:58
eranas14-Apr-04 6:58 
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 
I wrote about the difference between ASCII and 8-bit character sets here[^]. The encoding that the .NET Framework refers to as 'Unicode' is UTF-16 (Little Endian). The encoding referred to as 'Ascii' is ISO-646-US, a 7-bit encoding. Only the code points from 0 to 127 have any meaning; any code outside this range is simply translated to '?'.

If you want to convert an array of bytes representing characters into a System.String object, you must know what character set they represent, and what Windows code page that corresponds to. Windows code page numbers are listed at http://www.microsoft.com/globaldev/reference/WinCP.mspx[^].

For converting UTF-8 to a System.String, you can use the object returned by the System.Text.Encoding.UTF8 property.

Stability. What an interesting concept. -- Chris Maunder
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 
GeneralProblem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 2:28
JustChiLLin13-Apr-04 2:28 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
Mike Dimmick13-Apr-04 4:12
Mike Dimmick13-Apr-04 4:12 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 19:24
JustChiLLin13-Apr-04 19:24 
GeneralRedirection of Debug/Trace Messages Pin
JM_FL12-Apr-04 22:30
JM_FL12-Apr-04 22:30 
GeneralRe: Redirection of Debug/Trace Messages Pin
Mike Dimmick13-Apr-04 4:16
Mike Dimmick13-Apr-04 4:16 
GeneralRe: Redirection of Debug/Trace Messages Pin
Steven Campbell13-Apr-04 10:11
Steven Campbell13-Apr-04 10:11 
GeneralRe: Redirection of Debug/Trace Messages Pin
JM_FL14-Apr-04 2:31
JM_FL14-Apr-04 2:31 

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.