How to Display Unicode Characters in Executable
Posted: Fri Jun 02, 2017 8:27 pm
I need to graphically allow my user to enter the coefficients of a polynomial equation. I'm having trouble displaying a multiplication sign and a superscript on the screen.
I tried a number of solutions that ended up either being too much work, or just didn't work. For example, I created a graphic image and placing the wxStaticText fields on the image in the appropriate places; I tried to make separate wxStaticText fields align high enough to show that the number was a superscript; etc.
My final solution was to simply incorporate the correct extended character set characters that I needed into the text string in wxStaticText. As you can see in the printscreen below, the multiplication sign and superscripts appeared perfectly in the wxCrafter screen and in the wxCrafter Preview screen, but in the actual executing code, the special characters were replaced by extended characters.
The Unicode values of these characters appear in https://en.wikipedia.org/wiki/Unicode_s ... perscripts. I'm mainly looking for the superscripts of 0..9, and also the multiplication sign (U + 00D7).
What do I need to do to display my Unicode characters correctly in the executing code?
Thanks!
I tried a number of solutions that ended up either being too much work, or just didn't work. For example, I created a graphic image and placing the wxStaticText fields on the image in the appropriate places; I tried to make separate wxStaticText fields align high enough to show that the number was a superscript; etc.
My final solution was to simply incorporate the correct extended character set characters that I needed into the text string in wxStaticText. As you can see in the printscreen below, the multiplication sign and superscripts appeared perfectly in the wxCrafter screen and in the wxCrafter Preview screen, but in the actual executing code, the special characters were replaced by extended characters.
The Unicode values of these characters appear in https://en.wikipedia.org/wiki/Unicode_s ... perscripts. I'm mainly looking for the superscripts of 0..9, and also the multiplication sign (U + 00D7).
What do I need to do to display my Unicode characters correctly in the executing code?
Thanks!
- Software Versions
CodeLite 10.0.4
gcc 4.9.3
tdm-gcc 5.1.0.2
Windows 10 Pro, 64-bit
wxWidgets 3.1.0
wxCrafter 2.6
Target platform 32-bit
Target build debug