Printing Astral Plane Unicode code point to console using int
Please see here for a related question. However, char goes to 0xffff (or 65535). I need to write 0xd800df46 (or 66374), Gothic letter Faihu, so casting that int to char will not work. I do the conversion ok, that is, I get the correct integer, meaning I calculate the surrogate pairs ok, but I don't know how to "render" it, convert it to a character to be output as a glyph. Please notice that I cannot use \Unnnn for ... well, theoretical reasons. Thank you.
Okay, you need to convert a single integer into a surrogate pair which you'd represent as a string: string x = char.ConvertFromUtf32(66374); For more operations than that, you can use my Utf32String class in MiscUtil, as well as various other methods in System.Char.
C# keydown event storing in char variables
Performance of for/while loop vs foreach loop on List<T>
UI not updating with NotifyPropetyChanged for datatable
How to handle in customauthorizeattribute an ajax request with antiforgerytoken
Authenticate with OneDrive SDK in a c# console project
Undefined symbols for architecture x86_64 “_main”
C# Black rectangle while focus by pressing tabulator key
ASP.NET Core MVC and EF Core 1.1
XMLDiff fails to recognize differences correcly?
Can a PrintDialog be modified?
Parse XML generated using C# Classes
How to take input in one line and separately store them in different variables
C# store contents from DB into list
Is it possible for Selenium to open an Excel Workbook pragmatically
MSAL. Detect revoked permissions and perform re-authorization
entity framework ado.net error SaveChanges()