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

Are tags like asp:xxx the best way to implement data in an ASP.NETapplication?
Deleting a single registry value in C#
C# Replace a text in string with if the text contains in String list
ASP.Net C# Object Persists after Saving to Session Once
Web API - Detecting Client Domain
Stackexchange Redis - How to get large number of records paged
bootstrap select dropdown loading issue
Setting ConverterCulture using x:Static
SQL query to Linq Lambda Expression - Join same table with group condition
Memory allocation of string Builder. What happens in memory? StringBuilder vs String
LINQ unable to OrderBy date in specific column?
How do I add a value to a ComboBox selection in C#?
How to turn a generic ASP.net 4.5 MVC 5 login/register into a front facing modal?
Is it possible to update Cors Policy dyamically (OWIN pipeline)
get nearest tens-place number above and below any number
Linq statement : Order by

Categories

HOME
autohotkey
alasql
mobile
ns2
salesforce
compression
gap-system
mingw
atlassian-fisheye
travis-ci-cli
sitemap
ionic-native
obd-ii
gcloud
ndepend
tmux
element
openstack-horizon
web-worker
jsfiddle
greensock
windows-phone
virtuemart
autologin
lotusscript
aws-iot
advertising
functional-dependencies
android-wear-2.0
setup-project
units-of-measurement
pypy
paper-trail-gem
schedule
intermec
key-bindings
wordpress-rest-api
luhn
eclipse-jdt
jsonapi-resources
n1ql
android-geofence
dom4j
observer-pattern
keychain
directadmin
uitextview
python-venv
mef
google-chrome-storage
stanford-nlp-server
openxava
ear
enet
px4
photoshop-script
scanf
optional-parameters
mac-app-store
dimensionality-reduction
init
sprockets
camellia
mod
jmap
calc
trendline
ooad
producer-consumer
numerical-recipes
esri-arc-engine
indic
im4java
scjp
dateadd
rda
cvi
pthreads-win32
boofcv
logo-lang
playing-cards
mandelbrot
http-compression
qmainwindow
coinbase-php
nsautoreleasepool
gmail-imap
architectural-patterns
biztalk-deployment
ntdll
gpl
libx264
correctness
pdf-reader
jmesa
idtabs
scriptmanager
visual-leak-detector
xpolog
object-tag
marathontesting
lgpl
conditional-operator
newspeak
dojox.gfx
manuals
j++
office-2003

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