EncodingsByFrequency.inc (2545B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // List of encodings and their corresponding Lang atoms for font selection. 6 // nullptr indicates that the browser UI locale language will be used. 7 8 // These are in roughly-estimated frequency order sometimes by group. 9 // The main thing is that UTF-8 is first and windows-1252 is second, 10 // followed by other encodings that were a legacy default somewhere. 11 _(UTF_8_ENCODING, nullptr) 12 _(WINDOWS_1252_ENCODING, nsGkAtoms::x_western) 13 _(GBK_ENCODING, nsGkAtoms::zh_cn) 14 _(SHIFT_JIS_ENCODING, nsGkAtoms::Japanese) 15 _(BIG5_ENCODING, nsGkAtoms::zh_tw) 16 _(EUC_KR_ENCODING, nsGkAtoms::ko) 17 _(WINDOWS_1250_ENCODING, nsGkAtoms::x_western) 18 _(WINDOWS_1251_ENCODING, nsGkAtoms::x_cyrillic) 19 _(WINDOWS_1253_ENCODING, nsGkAtoms::el) 20 _(WINDOWS_1254_ENCODING, nsGkAtoms::x_western) 21 _(WINDOWS_1255_ENCODING, nsGkAtoms::he) 22 _(WINDOWS_1256_ENCODING, nsGkAtoms::ar) 23 _(WINDOWS_1257_ENCODING, nsGkAtoms::x_western) 24 _(WINDOWS_1258_ENCODING, nsGkAtoms::x_western) 25 _(WINDOWS_874_ENCODING, nsGkAtoms::th) 26 _(ISO_8859_2_ENCODING, nsGkAtoms::x_western) 27 _(EUC_JP_ENCODING, nsGkAtoms::Japanese) 28 _(GB18030_ENCODING, nsGkAtoms::zh_cn) 29 _(UTF_16BE_ENCODING, nullptr) 30 _(UTF_16LE_ENCODING, nullptr) 31 _(ISO_2022_JP_ENCODING, nsGkAtoms::Japanese) 32 _(ISO_8859_3_ENCODING, nsGkAtoms::x_western) 33 _(ISO_8859_4_ENCODING, nsGkAtoms::x_western) 34 _(ISO_8859_5_ENCODING, nsGkAtoms::x_cyrillic) 35 _(ISO_8859_6_ENCODING, nsGkAtoms::ar) 36 _(ISO_8859_7_ENCODING, nsGkAtoms::el) 37 _(ISO_8859_8_ENCODING, nsGkAtoms::he) 38 _(ISO_8859_8_I_ENCODING, nsGkAtoms::he) 39 _(ISO_8859_10_ENCODING, nsGkAtoms::x_western) 40 _(ISO_8859_13_ENCODING, nsGkAtoms::x_western) 41 _(ISO_8859_14_ENCODING, nsGkAtoms::x_western) 42 _(ISO_8859_15_ENCODING, nsGkAtoms::x_western) 43 _(ISO_8859_16_ENCODING, nsGkAtoms::x_western) 44 _(KOI8_R_ENCODING, nsGkAtoms::x_cyrillic) 45 _(KOI8_U_ENCODING, nsGkAtoms::x_cyrillic) 46 _(MACINTOSH_ENCODING, nsGkAtoms::x_western) 47 _(REPLACEMENT_ENCODING, nullptr) 48 _(IBM866_ENCODING, nsGkAtoms::x_cyrillic) 49 _(X_MAC_CYRILLIC_ENCODING, nsGkAtoms::x_cyrillic) 50 _(X_USER_DEFINED_ENCODING, nullptr)