How to display (or write to a file) Greek characters?

How to display (or write to a file) Greek characters using C #? I need to enter epsilon greek symbol in Excel using C #. The string to be written also has English characters. For instance:

enter image description here

+3
source share
1 answer

You can literally enter characters in your code. You can mix and match characters from any alphabet. Therefore, English and Greek characters on the same line are not a problem. If you do not know how to enter them (for example, if you do not have a Greek keyboard), you can copy and paste them.

Console.Write("α");         // Greek lower-case alpha

Here is a list of lowercase and lowercase Greek characters to copy:

α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω

Visual Studio, , Unicode (UTF-8).


Unicode .

Console.Write("\u03B1");    // Greek lower-case alpha

\u, . . &#x.

+8

All Articles