git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54369
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
flavorType = (CFStringRef)CFArrayGetValueAtIndex( flavorTypeArray,
flavorIndex );
+ // avoid utf8 being treated closer to plain-text than unicode by forcing a conversion
+ if ( UTTypeConformsTo(flavorType, CFSTR("public.utf8-plain-text") ) )
+ {
+ flavorType = CFSTR("public.utf16-plain-text");
+ }
wxDataFormat flavorFormat( (wxDataFormat::NativeFormat) flavorType );
if ( dataFormat == flavorFormat )