I am trying to print the Euro Symbol in my Windows forms application with the following code.
It works for all other characters & symbols, but Euro(€) is not displaying.
string input = ((char)128).ToString();
Font f = new System.Drawing.Font("Arial", 12f);
Graphics gr = this.CreateGraphics();
gr.DrawString(input, f, Brushes.Black, new PointF(0, 0));
128 – is the decimal of Euro sign
Can anyone help on this?
128 isn’t the correct value to represent the Euro sign. Maybe try:
Because
U+20ACis the Unicode code-point for a Euro sign.