c#


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.

Related Links

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()

Categories

HOME
spring-boot
teradata
ns2
locale
wifi
windows-server-2008
python-requests
ibm
crm
singleton
bitbucket
confluence-rest-api
glympse
docker-compose
open-search-server
rtc
token
wowza
guidewire
ng2-charts
javascript-debugger
web-worker
openscad
pylint
versioning
simd
beacon
audio-streaming
datasource
webgl-earth
turn.js
serenity-js
rndis
procedural-generation
devexpress-mvc
handle
priority-queue
hierarchical-data
resx
paper-trail-gem
visual-prolog
ilog
offset
powerbi-embedded
rythm
anypoint-studio
ssdp
android-graphview
vpython
cakephp-3.2
spring-ide
rivets.js
opos
appcmd
audio-fingerprinting
xamarin-test-cloud
iban
therubyracer
supervised-learning
ideavim
dday
app-data
mojolicious
transbase
windows-phone-8-emulator
traminer
jsoncpp
avrcp
web-standards
system.diagnostics
veeam
beagleboard
firebase-tools
applinks
backtrace
shunting-yard
crtdbg.h
drools-guvnor
register-allocation
nsnotificationcenter
nsmutableurlrequest
msdropdown
switchpreference
atg-dynamo
class-library
autofilter
xrandr
rbm
boost.build
dnsbl
custom-cursor
shapado
states
erlide
jqzoom
qvariant
hwnd
text-manipulation
simultaneous
miniport
qprocess
data-formats
jgrowl
weak-typing

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App