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?
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"));
(Sorry that was an em-dash but you get the idea.)
Cool, thanks for the help.