std::cout << Glib::ustring(utf8_literal) throws exception
- From: Sohail Somani <sohail taggedtype net>
- To: gtkmm-list gnome org
- Subject: std::cout << Glib::ustring(utf8_literal) throws exception
- Date: Sat, 12 Jul 2008 17:39:58 -0700
Hi,
The following code works fine on Linux but dies on Windows when run in
the console:
#include <gtkmm.h>
int main()
{
setlocale(LC_ALL,0);
// Should output aleph
std::cout << Glib::ustring("\xd7\x90") << std::endl
}
The error is: "Invalid byte sequence in conversion input"
Has anyone tried UTF-8 with Glib on Windows? What else do I need to do?
Thanks,
Sohail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]