message: Add str:: conversion for unsigned char* too
diff: @@ -73,6 +73,11 @@ inline std::wstring to_wstring(const char *utf8str)
  return boost::locale::conv::utf_to_utf<wchar_t>(utf8str);
  }
  +inline std::wstring to_wstring(const unsigned char *utf8str)
  +{
  + return boost::locale::conv::utf_to_utf<wchar_t>(utf8str);
  +}
  +
  inline std::string to_utf8(const wxString& str)
  {
  return std::string(str.utf8_str());
  @@ -88,6 +93,11 @@ inline wxString to_wx(const char *utf8)
  return wxString::FromUTF8(utf8);
  }
  +inline wxString to_wx(const unsigned char *utf8)
  +{
  + return wxString::FromUTF8((const char*)utf8);
  +}
  +
  inline wxString to_wx(const std::string& utf8)
  {
  return wxString::FromUTF8(utf8.c_str());
  @@ -115,6 +125,11 @@ inline NSString *to_NS(const char *utf8str)
  return [NSString stringWithUTF8String:utf8str];
  }
  +inline NSString *to_NS(const unsigned char *utf8str)
  +{
  + return [NSString stringWithUTF8String:(const char*)utf8str];
  +}
  +
  inline std::string to_utf8(NSString *str)
  {
  return std::string([str UTF8String]);
  