"en-dash" character in string

When I put an en-dash( – ) character in a string, it doesn’t show up as an en-dash on the gui. How do I display an en-dash?

You can types the text into the tool in Projucer’s Tools > UTF-8 String-Literal Helper:

Then using that in your code:
String likeThis (CharPointer_UTF8 ("Like \xe2\x80\x94 this"));

1 Like

(Sorry that was an em-dash but you get the idea.)

1 Like

Cool, thanks for the help.