Click here to Skip to main content
16,011,947 members
Home / Discussions / C#
   

C#

 
QuestionRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
Richard MacCutchan31-Dec-10 4:53
mveRichard MacCutchan31-Dec-10 4:53 
AnswerRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
vnmatt31-Dec-10 5:06
vnmatt31-Dec-10 5:06 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
Richard MacCutchan31-Dec-10 5:58
mveRichard MacCutchan31-Dec-10 5:58 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
jschell31-Dec-10 7:43
jschell31-Dec-10 7:43 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
Richard MacCutchan1-Jan-11 0:36
mveRichard MacCutchan1-Jan-11 0:36 
AnswerRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
jschell31-Dec-10 7:52
jschell31-Dec-10 7:52 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
vnmatt31-Dec-10 17:39
vnmatt31-Dec-10 17:39 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
jschell1-Jan-11 10:04
jschell1-Jan-11 10:04 
gordon_matt wrote:
It seems nobody knows how to get this and it is driving me nuts


Mentioning the surrogate pair probably confused the issue. It certainly did for me.

The following code should be what you want (with appropriate bit manipulation.) If not then could you provide the unicode.org page reference for 2A601 (I couldn't find it.)

// 2A601
byte[] array = new byte[4];
int i=0;
array[i++] = (byte)0x0001; // Little endian
array[i++] = (byte)0x00A6;
array[i++] = (byte)0x0002;
array[i++] = (byte)0x0000;

String r = System.Text.Encoding.UTF32.GetString(array);
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
vnmatt1-Jan-11 18:23
vnmatt1-Jan-11 18:23 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
Richard MacCutchan2-Jan-11 2:40
mveRichard MacCutchan2-Jan-11 2:40 
GeneralRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
jschell2-Jan-11 8:57
jschell2-Jan-11 8:57 
AnswerRe: Converting a unicode value (with a surrogate pair) to a character in C# Pin
Liao Jichen24-Feb-11 13:37
Liao Jichen24-Feb-11 13:37 
QuestionException Handling Pin
satsumatable31-Dec-10 1:16
satsumatable31-Dec-10 1:16 
AnswerRe: Exception Handling Pin
Hiren solanki31-Dec-10 1:28
Hiren solanki31-Dec-10 1:28 
GeneralRe: Exception Handling Pin
satsumatable31-Dec-10 1:39
satsumatable31-Dec-10 1:39 
AnswerRe: Exception Handling Pin
Hiren solanki31-Dec-10 1:43
Hiren solanki31-Dec-10 1:43 
AnswerRe: Exception Handling Pin
Rob Philpott31-Dec-10 3:22
Rob Philpott31-Dec-10 3:22 
AnswerRe: Exception Handling Pin
Pete O'Hanlon31-Dec-10 3:24
mvePete O'Hanlon31-Dec-10 3:24 
AnswerRe: Exception Handling Pin
jschell31-Dec-10 7:59
jschell31-Dec-10 7:59 
AnswerRe: Exception Handling Pin
ramit singh5-Jan-11 17:18
ramit singh5-Jan-11 17:18 
QuestionWhat free library for printing product details? - we will need tables, colors, frames Pin
haiaw31-Dec-10 0:57
haiaw31-Dec-10 0:57 
AnswerRe: What free library for printing product details? - we will need tables, colors, frames Pin
OriginalGriff31-Dec-10 0:59
mveOriginalGriff31-Dec-10 0:59 
AnswerRe: What free library for printing product details? - we will need tables, colors, frames Pin
Henry Minute31-Dec-10 12:05
Henry Minute31-Dec-10 12:05 
QuestionHow to add .h file(Header file) in c# Pin
sarang_k30-Dec-10 17:47
sarang_k30-Dec-10 17:47 
AnswerRe: How to add .h file(Header file) in c# Pin
Not Active30-Dec-10 17:50
mentorNot Active30-Dec-10 17:50 

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.