std::cout << Glib::ustring(utf8_literal) throws exception



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]