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

Can a Delphi 4 and/or Delphi 5 executable be integrated into a C# application?
WCF/REST Get image into picturebox?
Sonar-runner Exception with .NET Project
C# List<object> to IList cast bug in Unity3d
Logging lambda expressions
Deserializing response
How to find out size occupied by data table/data set in asp.net C#?
Change DB connection string after publishing a C# console app
excanvas js is not working in IE8 [duplicate]
count number of identical elements in two arrays in linq
WCF logging, set max file size?
LINQ concatenating elements in two string arrays [duplicate]
Trouble with PrintForm Control in C#
Array of different generics
Find node when traversing tree
Differences in event handling in C#

Categories

HOME
http
url
typo3
postgresql-9.3
intellisense
blob
ebay-api
arcgis
livecharts
cryengine
ms-access-2010
multipartform-data
psexec
genexus
webpack-dev-server
ethereum
activejdbc
urllib2
websharper
desktop-application
cakephp-2.0
comma
swift3.1
opendaylight
exchange-transport-agents
web-testing
sonarlint
android-xml
deployment-descriptor
multiple-inheritance
large-files
checkmarx
bytebuffer
units-of-measurement
jql
spring-oauth2
jcr
favorites
realloc
pygraphviz
electron-packager
web-technologies
bootstrap-carousel
taleo
ocpjp
weld
angular-fullstack
togglebutton
import.io
evaluation
px4
recursive-query
strtol
airwatch
boost-bind
cexception
web-optimization
sqldataadapter
web-performance
dynamics-nav-2013
dynamics-nav
opendolphin
lytro
jain-sip
traminer
autoscaling
nmock
web-standards
opennebula
perfect-scrollbar
pysvn
iphone-6
javadb
os.walk
sync
vundle
parallel-port
ant-contrib
yandex-api
smartxls
code-smell
new-operator
power-management
elixir-framework
connections
acrofields
mongoid4
maven-javadoc-plugin
ie-developer-tools
violation
wordbreaker
simplemembership
phone-state-listener
cryptarithmetic-puzzle
report-viewer2010
nsscrollview
django-1.4
fileoutputstream
mcpd
nbehave
quazip
webdb
morfik
httpbrowsercapabilities
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