Commit 501c3581 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #27 from xTibor/fix-unicode

vesad: Fix Unicode character input
parents 33fc507b 1b60f10b
......@@ -105,7 +105,8 @@ impl Screen for TextScreen {
};
if c != '\0' {
buf.extend_from_slice(&[c as u8]);
let mut b = [0; 4];
buf.extend_from_slice(c.encode_utf8(&mut b).as_bytes());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment