This article will help you write foreign language help for HTML Help (.chm) using FAR HTML authoring software.
For HH to compile and display Japanese text correctly you need to set "Windows Control Panel > Region Settings" to Japanese.
You will be asked to restart Windows.
Under Windows 7:
Under Windows XP:
Windows 2K:
For a non-Japanese PC you will need to install the Japanese fonts.
Under Windows 7 install the Japanese language Pack using Windows Update.
Note: Language packs are only available for Windows 7 Ultimate and Windows 7 Enterprise.
See also: http://support.microsoft.com/kb/972813
Here is some screen shots of Windows 7. Windows XP is different.
Under "Optional" you will find the language packs. Here my Japanese Language Pack is already installed so is no longer listed (but is listed now in Control Panel Uninstall).
Open the FAR HTML > HH Project Editor and set both the language and Char Set to Japanese (ShiftJIS)
Similarly open the TOC (.hhc) and Index (.hhk) files for the project (using FAR TOC & Index editors) and set their Char Set.
For languages such as Russian, you may also need to set the TOC Font property. Example: Try Verdana, Arial or Times Roman.
Set the Char Set in your Topic files as well. This will allow the browser to properly display the foreign language characters from your ANSI HTML encoded files.
To do this insert the appropriate Meta statement (see example below) into the head section of each HTML file. This can be done very quickly using FAR find and replace.
Use "shift_jis" for Japanese. For other codes check the HH Workshop online help (see Appendix 1 below).
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">
</head>
Again remember that all text files -- HH project files (.hhp, .hhc, .hhk etc) as well as topic files (.html, .htm) -- need to be ANSI encoded.
You can do this one at a time using the Windows NotePad SaveAs dialog.
Or a better way is to use FAR's Encoding command to convert multiple files in a single sweep.
The above can be applied to any language help.
Here are some codes to help.
For other Codes see Appendix 1 below.
The HH Workshop Help lists all the Char Set codes for you. Here is copy and paste of that page...
Character Set Recognition
Internet Explorer uses the character set specified for a document to determine how to translate the bytes in the document into characters on the screen or paper. By default, Internet Explorer uses the character set specified in the HTTP content type returned by the server to determine this translation. If this parameter is not given, Internet Explorer uses the character set specified by the META element in the document. It uses the user's preferences if no META element is given.
You can use the META element to explicitly set the character set for a document. In this case, you set the HTTP-EQUIV= attribute to "Content-Type" and specify a character set identifier in the CONTENT= attribute. For example, the following META element identifies Windows-1251 as the character set for the document.
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; CHARSET=Windows-1251">
As long as you place the META element before the BODY element, it affects the whole document, including the TITLE element. For clarity it should appear as the first element after HEAD so that all readers know the encoding before the first displayable is parsed. Note that the META element applies to the document containing it. This means, for example, that a compound document (a document consisting of two or more documents in a set of frames) can use different character sets in different frames.
Notes: Source documents
Note 1: us-ascii, ascii, iso8859-1, iso_8859-1, iso-8859-1, ANSI_X3.4-1968, iso-ir-6, ANSI_X3.4-1986, ISO_646, irv:1991, ISO646-US, us, IBM367, cp367, csASCII, latin1, iso_8859-1:1987, iso-ir-100, ibm819, cp819, Windows-1252, x-ansi
Note 2: ks_c_5601, ks_c_5601-1987, korean, csKSC56011987, euc-kr
Note 3: ISO_8859-8:1988, iso-ir-138, hebrew, csISOLatinHebrew, Windows-1255, ISO_8859-8i , ISO_8859-8e, ISO-8859-8i, ISO-8859-8e , logical
Note 4: http://www.internic.net/rfc/rfc1843.txt