From ec215ff4dfdeed138ce30677fc012a4800fb1386 Mon Sep 17 00:00:00 2001 From: travis-update-bot Date: Sun, 20 Dec 2015 15:00:35 +0000 Subject: [PATCH] Update blog to 74e84c7ea4d4e311b3c47ab0a36320d47874820e --- _posts/2015-10-23-printing-to-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2015-10-23-printing-to-screen.md b/_posts/2015-10-23-printing-to-screen.md index 71e57595..78f3bba4 100644 --- a/_posts/2015-10-23-printing-to-screen.md +++ b/_posts/2015-10-23-printing-to-screen.md @@ -206,7 +206,7 @@ pub fn write_str(&mut self, s: &str) { } } ``` -You can try it yourself in the `print_something` function. Note that you need to add the `core_str_ext` feature, since `core` is [still unstable][core tracking issue]. +You can try it yourself in the `print_something` function. When you print strings with some special characters like `ä` or `λ`, you'll notice that they cause weird symbols on screen. That's because they are represented by multiple bytes in [UTF-8]. By converting them to bytes, we of course get strange results. But since the VGA buffer doesn't support UTF-8, it's not possible to display these characters anyway. To ensure that a string contains only ASCII characters, you can prefix a `b` to create a [Byte String].