html-entity

how to convert from html number to symbol?

After searching internet for a while, I found that there are a lot of online tool that allow conversion from symbol to html number, but not for vice versa. I am looking for tool/online tool/php script to convert from html number back to symbol eg: & -> & then back to & -> & Does anyone know of this? ...

convert html entities to unicode(utf-8) strings in c?

This question is very similar to that one, but I need to do the same thing in C, not python. Here are some examples of what the function should do: input output &lt; < &gt; > &auml; ä &#x00DF; ß The function should have the signature char *html2str(char *html) or similar. I'm not reading byte by byte from a stream. Is t...

How to convert non-supported character to html entity in Java

Some character not support by certain charset, so below test fail. I would like to use html entity to encode ONLY those not supported character. How, in java? public void testWriter() throws IOException{ String c = "\u00A9"; String encoding = "gb2312"; ByteArrayOutputStream outStream = new ByteArrayOutputStream(); Writer...