Re: Charset declaration in HTML

From: Leif Halvard Silli <xn--mlform-iua_at_xn--mlform-iua.no>
Date: Thu, 12 Jul 2012 15:26:33 +0200

Naena Guru, Tue, 10 Jul 2012 01:40:19 -0500:

> As I said, I use HTML-Kit (and Tools).

Your problem appears to be that HTML-Kit does not directly support
UTF-8. But are you aware that you can still work with UTF-8 with it?
You only need to use UnicodePad in the Unicode menu of the Tools menu,
see more below.

However, if you use the non-free HTML-Kit Tools, then you should in
theory have much simpler life, as HTML-Kit Tools is able to operate
with UTF-8 directly, if you configure it to do so.

> [ snip ] I must have character entities if I need the comfort
> of HTML-Kit. [ snip ]
 
> I wanted to see how hard it is to edit a page in Notepad. So I made a copy
> of my LIYANNA page and replaced the character entities I used for Unicode
> Sinhala, accented Pali and Sanskrit with their raw letters. Notepad forced
> me to save the file in UTF-8 format. [ snip ]

If you want to get rid of the BOM plus use HTML-Kit, you can do this:

1. Open the Notepad-saved file in HTML-Kit
2. delete the 3 characters before the <!DOCTYPE. That way, you have
deleted the BOM.

<!--
   You can now edit your file in HTML-Kit, with syntax coloring and
everything. However, you will not be able to view the "raw"/directly
typed non-ASCII characters - those characters will appear as unreadable
"gibberish". But even if the text looks 'gibberish', you can still use
HTML-Kit's Preview, to see how the page will render. Just make sure
that you have a valid <meta> charset element that specifies that the
page is UTF-8 encoded - either <meta charset="UTF-8"/> or <meta
http-equiv="Content-Type" content="text/html;charset=UTF-8"/> . (If you
do not remove the BOM, you do not need to have a <meta> charset
element.)
-->

3. When you need to see the "raw"/directly typed non-ASCII characters,
you can select the UnicodePad under the tools menu, do the edits, and
click the Apply button to get it inserted into the normal HTML-Kit
editor. The Unicode menu also has a Insert Text tool which you can use
to add text inside elements.

If you use the free Notepad++ (or HTML-Kit Tools), then you do not need
to use the UnicodePad or the Insert Text tool, but can instead work
directly with the text, with full syntax coloring.

-- 
Leif H Silli
Received on Thu Jul 12 2012 - 08:28:07 CDT

This archive was generated by hypermail 2.2.0 : Thu Jul 12 2012 - 08:28:07 CDT