Mac issue with drag/drop from a wxDataViewCtrl (possibly UTF16 encoded).

Tony Kennedy <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi all,

My code is really simple, and works fine on Windows. But on the Mac, I've 
got something strange going on.

When the wxTextDataObject is created during my implementation of 
wxDataViewCtrl ::OnDragStart, the text I add to this is a tab delimited 
list, something like "aaa\tbbb".

But when the text is dropped onto the target, I get
"a\0a\0a\0\t\b\0b\0b\0b" 

I think somehow I'm getting a UTF16 encoded string, but I cannot seem to 
figure out how to convert it back to UTF8.

Does anyone have any ideas?

Thanks in advance,

Tony.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/15995df7-4023-49c0-85ae-f2d2535fb964n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.