You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the library (7.2.0) but getting errors or question marks instead of entered characters when using Unicode on Windows.
Example code that reproduces this:
use std::io::Write;
fn main() {
// copy these strings and enter them as password
println!("éëęėεeeη"); // Error: stream did not contain valid UTF-8
println!("äáàâăåαā"); // Error: stream did not contain valid UTF-8
println!("её"); // "??"
print!("password: ");
std::io::stdout().flush().unwrap();
let password = rpassword::read_password().unwrap();
println!("{}", password);
}
The text was updated successfully, but these errors were encountered:
Hello ! Thanks for reporting. This project has few maintainers and our time is limited so you'll most likely have to find a fix and submit a PR with test case.
Trying to use the library (7.2.0) but getting errors or question marks instead of entered characters when using Unicode on Windows.
Example code that reproduces this:
The text was updated successfully, but these errors were encountered: