Re: Mac issue with drag/drop from a wxDataViewCtrl (possibly UTF16 encoded).
Christian Kristukat <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAGFw7pHRCgVJbzAADjeDSy=K5oyHbMSNQMOG7LQSKiJWNEDOjg@mail.gmail.com> |
Hi Tony, from my experience with TextDataObjects on wxpython I can confirm that the string is indeed UTF-16BE encoded. I have no experience with decoding in C++ though, sorry. Christian El jue, 10 oct 2024 a la(s) 10:05 a.m., Tony Kennedy ( [email protected]) escribió: > 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 > <https://groups.google.com/d/msgid/wx-users/15995df7-4023-49c0-85ae-f2d2535fb964n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAGFw7pHRCgVJbzAADjeDSy%3DK5oyHbMSNQMOG7LQSKiJWNEDOjg%40mail.gmail.com.