Click here to Skip to main content
Licence CPOL
First Posted 4 Sep 2006
Views 14,038
Bookmarked 9 times

Displaying Greek letters in .NET using char casting

By | 4 Sep 2006 | Article
How to display Greek letters in .NET using char casting.

Introduction

I searched the Internet one day looking for a way to add that wily "Omega" symbol to some code of mine. I turns out that the best way to do this is to simply cast the hexcode value for "omega" to type char and add it anywhere in the string where you want it to appear. I thought I would share this information here with those of you who may need it.

A very simple example of this would look like the following:

aString  = aString + (char)0x03A9;
return aString;

This can be pretty much done for any symbol that has a hexcode! I hope this helps someone...Always share knowledge!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

JHotGermany



Germany Germany

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralUnicode as an alternative PinmemberChris Danezis10:16 25 Jul '08  
GeneralJust what I needed. PinmemberRick Pingry14:59 24 Jul '07  
GeneralRe: Just what I needed. PinmemberMember 236693421:45 21 May '08  
GeneralRe: Just what I needed. PinmemberRick Pingry6:54 7 Jun '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 5 Sep 2006
Article Copyright 2006 by JHotGermany
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid