How to Convert Special Character to HTML Code
Sometimes, I have to view special character that could not be displayed directly on my website for the certain reason. For example, when I wanted to share a knowledge about How to Translate Your Blog Title and Description Using qTranslate Plugin then I have to display special tag related to this topic like [:en] which has the special character [ and ]. In order to display the output properly, first of all, I have to convert first those both characters become the HTML Code. In this case, the left square bracket is equal with &-#-91-; (without minus sign between those characters), and the right square bracket is equal to &-#-93-; (without minus sign between those characters). Otherwise, those real characters in the browser view will work as they should be, translating the sentence after that tag based on the language code. It means that I am not be able to display the real character based on their HTML Code if I have not converted them, yet. Another example is, when you want to display the symbol of Copy Rights or Registered. So, here you will find the list of HTML Code belong to the special characters, in order to display the real character in your browser, especially if those characters are being used for such function on your website script. Read more…
Recent Comments