inline NSString* wxNSStringWithWxString(const wxString &wxstring)
{
#if wxUSE_UNICODE
- return [NSString stringWithUTF8String: wxstring.mb_str(wxConvUTF8)];
+ return [NSString stringWithUTF8String: wxstring.utf8_str()];
#else
return [NSString stringWithCString: wxstring.c_str() length:wxstring.Len()];
#endif // wxUSE_UNICODE
inline NSString* wxInitNSStringWithWxString(NSString *nsstring, const wxString &wxstring)
{
#if wxUSE_UNICODE
- return [nsstring initWithUTF8String: wxstring.mb_str(wxConvUTF8)];
+ return [nsstring initWithUTF8String: wxstring.utf8_str()];
#else
return [nsstring initWithCString: wxstring.c_str() length:wxstring.Len()];
#endif // wxUSE_UNICODE
inline wxString wxStringWithNSString(NSString *nsstring)
{
#if wxUSE_UNICODE
- return wxString([nsstring UTF8String], wxConvUTF8);
+ return wxString::FromUTF8Unchecked([nsstring UTF8String]);
#else
return wxString([nsstring lossyCString]);
#endif // wxUSE_UNICODE