Search code examples
c#wpftextboxfileopendialog

How to cope with charset >128 && <256 in a textbox


In a WPF project I have a OpenFileDialog that gets a filename from filesystem and puts it in a textBox.

Now if I put the phi greek letter with charmpa in a filename enter image description here

and create this

enter image description here

the textbox that receives the filename doesn't display the phi greek letter

enter image description here

and displays it with blank chars.


Solution

  • dialog on screenshot shows it uses Arial font. TextBox probably uses some other font which cannot display 216 char.