[−][src]Function winconsole::console::get_code_page_info
pub fn get_code_page_info(page: CodePage) -> WinResult<CodePageInfo>
Returns a CodePageInfo
object which contains information about the CodePage
.
Arguments
page
- TheCodePage
to retrieve information about.
Examples
let info = console::get_code_page_info(CodePage::utf_8).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.