Click here to Skip to main content
12,998,892 members (69,780 online)
Click here to Skip to main content
Add your own
alternative version


9 bookmarked
Posted 4 Sep 2006

Displaying Greek letters in .NET using char casting

, 4 Sep 2006
Rate this:
Please Sign up or sign in to vote.
How to display Greek letters in .NET using char casting.


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!


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


About the Author

Germany Germany
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralUnicode as an alternative Pin
Chris Danezis25-Jul-08 10:16
memberChris Danezis25-Jul-08 10:16 
GeneralJust what I needed. Pin
Rick Pingry24-Jul-07 14:59
memberRick Pingry24-Jul-07 14:59 
GeneralRe: Just what I needed. Pin
Member 236693421-May-08 21:45
memberMember 236693421-May-08 21:45 
GeneralRe: Just what I needed. Pin
Rick Pingry7-Jun-08 6:54
memberRick Pingry7-Jun-08 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web02 | 2.8.170622.1 | Last Updated 5 Sep 2006
Article Copyright 2006 by JHotGermany
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid