Click here to Skip to main content
12,448,720 members (54,406 online)
Click here to Skip to main content
Add your own
alternative version

Stats

20.6K views
9 bookmarked
Posted

Displaying Greek letters in .NET using char casting

, 4 Sep 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

JHotGermany
Germany Germany
No Biography provided

You may also be interested in...

Pro
Pro

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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 5 Sep 2006
Article Copyright 2006 by JHotGermany
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid