Special characters JavaDB into Java
I have a Derby database with a table that contains string data with special characters. For example, H2O, where the 2 is subscripted. I want to display this string correctly in Java. I'm trying to do this with HTML. But when I import the string from the DB, the HTML formatting is ignored. For example, the database string "<html>H<sub>2</sub>O</html>" does not produce the correct formatting when displayed; that is to say the string is literally displayed as written, not H2O but <html>H<sub>2</sub>O</html>.
How do I get Java to correctly interpret the HTML that is embedded in the strings in the database tables?
Or is there a better way to do this?