From 88660fdf6488fa2a6d2855afcc11521f3bc772b5 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 24 Oct 2015 21:40:27 +0200 Subject: [PATCH] Add note on C++11/C11 UTF-8 literals --- docs/window.dox | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/window.dox b/docs/window.dox index 0557bda5..de53be9f 100644 --- a/docs/window.dox +++ b/docs/window.dox @@ -587,6 +587,12 @@ characters directly in the source. glfwSetWindowTitle(window, "星を追う子ども"); @endcode +If you are using C++11 or C11, you can use a UTF-8 string literal. + +@code +glfwSetWindowTitle(window, u8"This is always a UTF-8 string"); +@endcode + @subsection window_monitor Window monitor