So I'm trying to print lbf.S²/in⁴
in a mfc label, but it shows-up as lbf.S²/in4
.
I'm wondering why ²
will display correctly while ⁴
wouldn't.
It's a 32bit project with Unicode character set.
Here's the .rc code
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Units"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
CTEXT "lbf-sec²/ in⁴",IDC_IPS1,77,36,48,8
END
I'm convinced this has to do with inadvertent changes to the file encoding.
Recreate as follows:
lbf-sec²/ in⁴
as static text captionBuild and run, and all is well.
Visual Studio now refreshes and caption is garbled.
lbf-sec²/ in⁴
as the label captionBuild and run, and you see the error
View .rc file in editor and text has indeed reverted and so has encoding
Caveat
I'm not saying I know how, why or when the encoding changes, I'm saying it somehow can happen.
A solution (What works for me)
lbf-sec²/ in4
, and with encoding UTF-8lbf-sec²/ in⁴
Clean, Rebuild All, run and all is well.