Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Liao Jichen

@Liao Jichen
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Converting a unicode value (with a surrogate pair) to a character in C#
    L Liao Jichen

    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.

    C# tutorial csharp question

  • Google Operating System...
    L Liao Jichen

    Sorry, by accident I voted a 2... And I just don't know how to retrieve it. Google has been offering a lot of intesting things, earth, moon, mars, destop, gmail, pages and lot more, mostly in beta phase. If there is a Google OS, I will try it without hesitation. But can you guys really figure out what the benifits Google can make from a Google OS?

    The Lounge beta-testing question code-review
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups