'm³/s in C# is show as m³/s in HTML [closed]

I´m writing a program that shows a diagram with several curves showing some data of a machine. The code is in C#, JavaScript, CSS and HTML. Now my problem is that I want to have a title for my x-axis. It should show [m³/s], but instead it shows [m³/s]. The [m³/s] is written in C#. Seems that the ³ is transformed into ASCII-Code. Is there any way to show it as expected?



Solution 1:[1]

If the html is itself UTF-8 encoded, then m³/s should work as-is - which you can see via "view source" on this page, and looking for /s] (and looking back a few characters, obviously) - you'll see that it isn't explicitly encoded; if not, m³/s should work reliably as an alternative; m³/s is also a possibility, although it might not work on older browsers.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marc Gravell