"en-dash" character in string

gui

#1

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?


#2

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"));


#3

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


#4

Cool, thanks for the help.