[−][src]Function winconsole::console::set_input_code_page
pub fn set_input_code_page(page: CodePage) -> WinResult<()>
Sets the input code page to be used by the console.
Arguments
page
- The code page to use.
Examples
console::set_input_code_page(CodePage::utf_8).unwrap();
Errors
ArgumentError
: Returned ifpage
isCodePage::None
orCodePage::Invalid
.IoError
: Returned if an OS error occurs.