Get Involved

SourceForge Logo
Spam Chongqed








Documentation - Customization - Character Encoding and Language Groups


This page explains how to set the character encoding and language groups used by K-Meleon 0.7. This will assist users who need to view web pages displayed in languages other than English.


K-Meleon's default character encoding is to display web pages using a character set consistent with text in English. K-Meleon's default language group is US English. However, many users may choose to have K-Meleon display text in a language other than English. K-Meleon uses several methods to detect and display characters in other languages. These instructions will cover several preferences that you can set to manage that process. Before starting, you will need to know the specific character sets that your language requires. Please review these examples of popular character sets and language groups. K-Meleon may not necessarily support all character sets or language groups using these methods.

Note: You may need special fonts installed on your system to properly display all of the non-English characters.

Close K-Meleon before starting. If you are using the Loader, make sure that you exit that also.

1. Open Notepad or some other text editor.

2. K-Meleon's preferences are stored in a file called prefs.js. Prefs.js is normally located here:

C:\Program Files\K-Meleon\Profiles\default\xxxxxxxx.slt\

Browse to this location and open prefs.js in Notepad.

3. For each of the three options, move your cursor to the end of the file and add the new preference:

A. Default Character Set

user_pref("intl.charset.default", "character set");

where the "character set" = the character set commonly used to display the language characters of your choice. For example:

user_pref("intl.charset.default", "windows-1251");

K-Meleon will use this setting as the default character encoding .

B. Character Set Detection

Add the following line
user_pref("intl.charsetmenu.browser.cache", "character set");

where the "character set" = the character set commonly used to display the language characters of your choice. For example:

user_pref("intl.charsetmenu.browser.cache", "windows-1251");

K-Meleon will use this setting for on-the-fly encoding detection. In this example, K-Meleon will attempt to detect and display characters in Russian.

C. Order of Preferred Languages

user_pref("intl.accept_languages", "language setting #1, language setting #2, etc.");

where the "language setting #" = the language that you wish K-Meleon to attempt to display, in the order of preference. For example:

user_pref("intl.accept_languages", "ru, en-us, en");

K-Meleon will use these settings to first attempt to detect and display Russian (ru) language text, than US English (en-us) and finally British English (en).

4. Save prefs.js and restart K-Meleon.

5. Browse to your web page of choice that displays text in a non-English language. If your system is otherwise configured properly, you should see the text display with the proper characters.

Last updated: January 11, 2003
Created: January 11, 2003

(c) 2000-2001 kmeleon.org. All rights reserved.
design by splif.