scc2html is a free command-line bash script that will change common used special characters to HTML entities. For example if in your code you have the character €, scc2html will replace it for €

Download scc2html

How to install | How to use | FAQ

  • scc2html is encoded as Unicode UTF-8 and works on files encoded also as Unicode UTF-8. Is highly recommended to use this encoding for your terminal client (you can see the examples for Putty in Windows or Terminal in Mac OS X
  • It has been tested on a Mac with Snow Leopard (Darwin Kernel Version 10.8.0) and Debian Linux Lenny 5.5. Basically the only requirement is to have Perl installed.
  • scc2html uses name entities by default except in the cases were clearly recognized name entities aren’t available. The plan is that the upcoming version of scc2html will include an option to make replacements for entity numbers only if preferred.

How to install

  1. Extract the file(s) in scc2html.tar.gz
    $ tar zxvf scc2html.gz
  2. Give the necessary permission to the script to make it executable (in many cases this case cannot be necessary, but just in case I recommend you to set it up)
    $ chmod +x scc2html

How to use

  1. The basic syntax is as follows:
    $ ./scc2html [path]

    Example where the target path is located at /var/www/mysite/:

    $ ./scc2html /var/www/mysite/

Frequently Asked Questions

Q. Do I need scc2html?
A. Choosing between use of HTML entities or raw UTF-8 characters will depend of the final user requirements and the limitations of the developer to edit with the code. For example if the server where you have your pages have problems displaying special characters in UTF-8 correctly in certain browsers you can give a try using HTML entities instead.

Q. Why Unicode UTF-8?
A. Recent statistics points that “the majority of the top Internet sites use UTF-8 encoding, a Unicode standard which is required by all Internet protocols to be identifiable” (source:

Q. I found a bug / I have an idea for improvement.
A. Please, tell me more.