Tutorial - How To Convert HTML Files
Top  Previous  Next


A HTML file called HtmlDemo.htm is installed into Program Folder of Unifier. We will convert this file to UTF-8 encoding using Unifier in this tutorial.

Procedure

Setup Unifier as the procedure below. A screenshot is attached for reference

1.Copy this sample file, HtmlDemo.htm, from Program folder to your own My Documents folder  
2.   Drag-and-Drop the file, HtmlDemo.htm, from My Documents folder to Unifier Icon
3.   Select Source Encoding to ISO8859-1
4.   Select Unicode Format to UTF-8
5.   Select Output Option to Overwrite after backup original files:
6.Enter _org_ to the Edit Box  
7.   Enable Add UTF-8 charset Meta Tag to HTML files option
8.   Enable Convert HTML Character Entity to Raw Unicode option
9.   Click Convert button to start Unicode Conversion

   tutorial2

Notes About Windows NTFS Security

The Program Files Folder is read-only for normal users. Only Administrators have write access to Program Files Folder and its sub-folders. The conversion will fail if you convert directly from the program folders and you do not have write access right to the folder.

Result

·After conversion, the original file is renamed to _org_htmldemo.htm. The converted file is still htmldemo.htm  
·Double click on htmldemo.htm to view it in Browser. You will find that the content of the file remain the same.  
·Right-Click on the page and select View Source to view the source code of the HTML file.  
·Look at the <HEAD> section. You will find that the original charset meta tag is remarked and a UTF-8 charset meta tag is added.  
·The HTML Character Reference (e.g. &sect;) will be converted to Raw Unicode Character  

Note: If you corrupted HtmlDemo.htm file during conversion, you may extract the file from demo.zip archive.

See Also
Tutorial - How To Convert Text Files
How does Unifier handle charset Meta Tag in HTML files?