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

C#

 
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 
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 
You can parse the "U+XXXXX" string into a integer of unicode, which in your case should be unicode=0x0002A601. Then you can ensurrogate to have two integers hi and lo.
int unicode, hi, lo;
unicode=0x0002A601;
hi = (unicode - 0x10000) / 0x400 + 0xD800;
lo = (unicode - 0x10000) % 0x400 + 0xDC00;

string s = new String(new char[] { Convert.ToChar(hi), Convert.ToChar(lo) });

The string s is 𪘁.

BTW, dealing with unicode, you may want to use System.Globalization.StringInfo.GetTextElementEnumerator to get a TextElement, check MSDN for more details.
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 
AnswerRe: How to add .h file(Header file) in c# Pin
Bernhard Hiller30-Dec-10 19:41
Bernhard Hiller30-Dec-10 19:41 
AnswerRe: How to add .h file(Header file) in c# Pin
DaveyM6931-Dec-10 0:05
professionalDaveyM6931-Dec-10 0:05 
AnswerRe: How to add .h file(Header file) in c# Pin
Ravi Sant31-Dec-10 0:11
Ravi Sant31-Dec-10 0:11 
AnswerRe: How to add .h file(Header file) in c# Pin
PIEBALDconsult31-Dec-10 2:19
mvePIEBALDconsult31-Dec-10 2:19 

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.