Enum msi::CodePage [] [src]

pub enum CodePage {
    Windows1250,
    Windows1251,
    Windows1252,
    Windows1253,
    Windows1254,
    Windows1255,
    Windows1256,
    Windows1257,
    Windows1258,
    MacintoshRoman,
    MacintoshCyrillic,
    UsAscii,
    Iso88591,
    Iso88592,
    Iso88593,
    Iso88594,
    Iso88595,
    Iso88596,
    Iso88597,
    Iso88598,
    Utf8,
}

A Windows code page.

Code pages are a legacy Windows mechanism for representing character encodings, but are still used within the MSI file format.

Not all Windows code pages are supported by this library yet. See Wikipedia for a complete list of valid code pages.

Variants

Windows-1250 (Latin 2)

Windows-1251 (Cyrillic)

Windows-1252 (Latin 1)

Windows-1253 (Greek)

Windows-1254 (Turkish)

Windows-1255 (Hebrew)

Windows-1256 (Arabic)

Windows-1257 (Baltic)

Windows-1258 (Vietnamese)

Mac OS Roman

Macintosh Cyrillic

US-ASCII

ISO-8859-1 (Latin 1)

ISO-8859-2 (Latin 2)

ISO-8859-3 (South European)

ISO-8859-4 (North European)

ISO-8859-5 (Cyrillic)

ISO-8859-6 (Arabic)

ISO-8859-7 (Greek)

ISO-8859-8 (Hebrew)

UTF-8

Methods

impl CodePage
[src]

Returns the code page (if any) with the given ID number.

Returns the ID number used within Windows to represent this code page.

Returns a human-readable name for this code page.

Decodes a byte array into a string, using this code page. Invalid characters will be replaced with a Unicode replacement character (U+FFFD).

Encodes a string into a byte array, using this code page. For non-Unicode code pages, any characters that cannot be represented will be replaced with a code-page-specific replacement character (typically '?').

Trait Implementations

impl Clone for CodePage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CodePage
[src]

impl Debug for CodePage
[src]

Formats the value using the given formatter.

impl Eq for CodePage
[src]

impl PartialEq for CodePage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for CodePage
[src]

Returns the "default value" for a type. Read more