[−][src]Enum winconsole::console::CodePage
Represents a console code page.
Variants
NoneDefault value.
IBM037IBM EBCDIC US-Canada.
IBM437OEM United States.
IBM500IBM EBCDIC International.
ASMO_708Arabic (ASMO 708).
ASMO_709Arabic (ASMO-449+, BCON V4).
ASMO_710Arabic - Transparent Arabic.
DOS_720Arabic (Transparent ASMO); Arabic (DOS).
ibm737OEM Greek (formerly 437G); Greek (DOS).
ibm775OEM Baltic; Baltic (DOS).
ibm850OEM Multilingual Latin 1; Western European (DOS).
ibm852OEM Latin 2; Central European (DOS).
IBM855OEM Cyrillic (primarily Russian).
ibm857OEM Turkish; Turkish (DOS).
IBM00858OEM Multilingual Latin 1 + Euro symbol.
IBM860OEM Portuguese; Portuguese (DOS).
ibm861OEM Icelandic; Icelandic (DOS).
DOS_862OEM Hebrew; Hebrew (DOS).
IBM863OEM French Canadian; French Canadian (DOS).
IBM864OEM Arabic; Arabic (864).
IBM865OEM Nordic; Nordic (DOS).
cp866OEM Russian; Cyrillic (DOS).
ibm869OEM Modern Greek; Greek, Modern (DOS).
IBM870IBM EBCDIC Multilingual/ROECE (Latin 2); IBM EBCDIC Multilingual Latin 2.
windows_874ANSI/OEM Thai (ISO 8859-11); Thai (Windows).
cp875IBM EBCDIC Greek Modern.
shift_jisANSI/OEM Japanese; Japanese (Shift-JIS).
gb2312ANSI/OEM Simplified Chinese (PRC, Singapore); Chinese Simplified (GB2312).
ks_c_5601_1987ANSI/OEM Korean (Unified Hangul Code).
big5ANSI/OEM Traditional Chinese (Taiwan; Hong Kong SAR, PRC); Chinese Traditional (Big5).
IBM1026IBM EBCDIC Turkish (Latin 5).
IBM01047IBM EBCDIC Latin 1/Open System.
IBM01140IBM EBCDIC US-Canada (037 + Euro symbol); IBM EBCDIC (US-Canada-Euro).
IBM01141IBM EBCDIC Germany (20273 + Euro symbol); IBM EBCDIC (Germany-Euro).
IBM01142IBM EBCDIC Denmark-Norway (20277 + Euro symbol); IBM EBCDIC (Denmark-Norway-Euro).
IBM01143IBM EBCDIC Finland-Sweden (20278 + Euro symbol); IBM EBCDIC (Finland-Sweden-Euro).
IBM01144IBM EBCDIC Italy (20280 + Euro symbol); IBM EBCDIC (Italy-Euro).
IBM01145IBM EBCDIC Latin America-Spain (20284 + Euro symbol); IBM EBCDIC (Spain-Euro).
IBM01146IBM EBCDIC United Kingdom (20285 + Euro symbol); IBM EBCDIC (UK-Euro).
IBM01147IBM EBCDIC France (20297 + Euro symbol); IBM EBCDIC (France-Euro).
IBM01148IBM EBCDIC International (500 + Euro symbol); IBM EBCDIC (International-Euro).
IBM01149IBM EBCDIC Icelandic (20871 + Euro symbol); IBM EBCDIC (Icelandic-Euro).
utf_16Unicode UTF-16, little endian byte order (BMP of ISO 10646); available only to managed applications.
unicodeFFFEUnicode UTF-16, big endian byte order; available only to managed applications.
windows_1250ANSI Central European; Central European (Windows).
windows_1251ANSI Cyrillic; Cyrillic (Windows).
windows_1252ANSI Latin 1; Western European (Windows).
windows_1253ANSI Greek; Greek (Windows).
windows_1254ANSI Turkish; Turkish (Windows).
windows_1255ANSI Hebrew; Hebrew (Windows).
windows_1256ANSI Arabic; Arabic (Windows).
windows_1257ANSI Baltic; Baltic (Windows).
windows_1258ANSI/OEM Vietnamese; Vietnamese (Windows).
JohabKorean (Johab).
macintoshMAC Roman; Western European (Mac).
x_mac_japaneseJapanese (Mac).
x_mac_chinesetradMAC Traditional Chinese (Big5); Chinese Traditional (Mac).
x_mac_koreanKorean (Mac).
x_mac_arabicArabic (Mac).
x_mac_hebrewHebrew (Mac).
x_mac_greekGreek (Mac).
x_mac_cyrillicCyrillic (Mac).
x_mac_chinesesimpMAC Simplified Chinese (GB 2312); Chinese Simplified (Mac).
x_mac_romanianRomanian (Mac).
x_mac_ukrainianUkrainian (Mac).
x_mac_thaiThai (Mac).
x_mac_ceMAC Latin 2; Central European (Mac).
x_mac_icelandicIcelandic (Mac).
x_mac_turkishTurkish (Mac).
x_mac_croatianCroatian (Mac).
utf_32Unicode UTF-32, little endian byte order; available only to managed applications.
utf_32BEUnicode UTF-32, big endian byte order; available only to managed applications.
x_Chinese_CNSCNS Taiwan; Chinese Traditional (CNS).
x_cp20001TCA Taiwan.
x_Chinese_EtenEten Taiwan; Chinese Traditional (Eten).
x_cp20003IBM5550 Taiwan.
x_cp20004TeleText Taiwan.
x_cp20005Wang Taiwan.
x_IA5IA5 (IRV International Alphabet No. 5, 7-bit); Western European (IA5).
x_IA5_GermanIA5 German (7-bit).
x_IA5_SwedishIA5 Swedish (7-bit).
x_IA5_NorwegianIA5 Norwegian (7-bit).
us_asciiUS-ASCII (7-bit).
x_cp20261T.61.
x_cp20269ISO 6937 Non-Spacing Accent.
IBM273IBM EBCDIC Germany.
IBM277IBM EBCDIC Denmark-Norway.
IBM278IBM EBCDIC Finland-Sweden.
IBM280IBM EBCDIC Italy.
IBM284IBM EBCDIC Latin America-Spain.
IBM285IBM EBCDIC United Kingdom.
IBM290IBM EBCDIC Japanese Katakana Extended.
IBM297IBM EBCDIC France.
IBM420IBM EBCDIC Arabic.
IBM423IBM EBCDIC Greek.
IBM424IBM EBCDIC Hebrew.
x_EBCDIC_KoreanExtendedIBM EBCDIC Korean Extended.
IBM_ThaiIBM EBCDIC Thai.
koi8_rRussian (KOI8-R); Cyrillic (KOI8-R).
IBM871IBM EBCDIC Icelandic.
IBM880IBM EBCDIC Cyrillic Russian.
IBM905IBM EBCDIC Turkish.
IBM00924IBM EBCDIC Latin 1/Open System (1047 + Euro symbol).
EUC_JPJapanese (JIS 0208-1990 and 0212-1990).
x_cp20936Simplified Chinese (GB2312); Chinese Simplified (GB2312-80).
x_cp20949Korean Wansung.
cp1025IBM EBCDIC Cyrillic Serbian-Bulgarian.
koi8_uUkrainian (KOI8-U); Cyrillic (KOI8-U).
iso_8859_1ISO 8859-1 Latin 1; Western European (ISO).
iso_8859_2ISO 8859-2 Central European; Central European (ISO).
iso_8859_3ISO 8859-3 Latin 3.
iso_8859_4ISO 8859-4 Baltic.
iso_8859_5ISO 8859-5 Cyrillic.
iso_8859_6ISO 8859-6 Arabic.
iso_8859_7ISO 8859-7 Greek.
iso_8859_8ISO 8859-8 Hebrew; Hebrew (ISO-Visual).
iso_8859_9ISO 8859-9 Turkish.
iso_8859_13ISO 8859-13 Estonian.
iso_8859_15ISO 8859-15 Latin 9.
x_EuropaEuropa 3.
iso_8859_8_iISO 8859-8 Hebrew; Hebrew (ISO-Logical).
iso_2022_jp_1ISO 2022 Japanese with no halfwidth Katakana; Japanese (JIS).
csISO2022JPISO 2022 Japanese with halfwidth Katakana; Japanese (JIS-Allow 1 byte Kana).
iso_2022_jp_2ISO 2022 Japanese JIS X 0201-1989; Japanese (JIS-Allow 1 byte Kana - SO/SI).
iso_2022_krISO 2022 Korean.
x_cp50227ISO 2022 Simplified Chinese; Chinese Simplified (ISO 2022).
iso_2022_chISO 2022 Traditional Chinese.
x_EBCDIC_JapaneseExtendedEBCDIC Japanese (Katakana) Extended.
x_EBCDIC_USCanadaJapaneseEBCDIC US-Canada and Japanese.
x_EBCDIC_KoreanExtendedAndKoreanEBCDIC Korean Extended and Korean.
x_EBCDIC_ChineseExtendedAndChineseEBCDIC Simplified Chinese Extended and Simplified Chinese.
x_EBCDIC_ChineseExtendedEBCDIC Simplified Chinese.
x_EBCDIC_USCanadaChineseEBCDIC US-Canada and Traditional Chinese.
x_EBCDIC_JapaneseExtendedAndJapaneseEBCDIC Japanese (Latin) Extended and Japanese.
euc_jpEUC Japanese.
EUC_CNEUC Simplified Chinese; Chinese Simplified (EUC).
euc_krEUC Korean.
EUC_TCNEUC Traditional Chinese.
hz_gb_2312HZ-GB2312 Simplified Chinese; Chinese Simplified (HZ).
GB18030Windows XP and later: GB18030 Simplified Chinese (4 byte); Chinese Simplified (GB18030).
x_iscii_deISCII Devanagari.
x_iscii_beISCII Bangla.
x_iscii_taISCII Tamil.
x_iscii_teISCII Telugu.
x_iscii_asISCII Assamese.
x_iscii_orISCII Odia.
x_iscii_kaISCII Kannada.
x_iscii_maISCII Malayalam.
x_iscii_guISCII Gujarati.
x_iscii_paISCII Punjabi.
utf_7Unicode (UTF-7).
utf_8Unicode (UTF-8).
InvalidInvalid code page.
Methods
impl CodePage[src]
impl CodePage[src]
pub fn get_info(self) -> WinResult<CodePageInfo>[src]
Returns a CodePageInfo object which contains information about the CodePage.
Examples
let info = CodePage::utf_8.get_info().unwrap(); println!("{}", info.name);
Errors
FromUtf8Error: Returned if an error occurs while converting to a character.FromUtf16Error: Returned if an error occurs while converting to a character.IoError: Returned if an OS error occurs.
Trait Implementations
impl PartialEq<CodePage> for CodePage[src]
fn eq(&self, other: &CodePage) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl From<u16> for CodePage[src]
impl Clone for CodePage[src]
fn clone(&self) -> CodePage[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Into<u16> for CodePage[src]
impl Copy for CodePage[src]
impl Display for CodePage[src]
impl Debug for CodePage[src]
impl Serialize for CodePage[src]
impl<'de> Deserialize<'de> for CodePage[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,