Re: Mac issue with drag/drop from a wxDataViewCtrl (possibly UTF16 encoded).
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 10 Oct 2024 06:05:07 -0700 (PDT) Tony Kennedy wrote:
TK> When the wxTextDataObject is created during my implementation of
TK> wxDataViewCtrl ::OnDragStart, the text I add to this is a tab delimited
TK> list, something like "aaa\tbbb".
TK>
TK> But when the text is dropped onto the target, I get
TK> "a\0a\0a\0\t\b\0b\0b\0b"
TK>
TK> I think somehow I'm getting a UTF16 encoded string, but I cannot seem to
TK> figure out how to convert it back to UTF8.
TK>
TK> Does anyone have any ideas?
This definitely looks like a bug. If you can reproduce it in the dataview
sample, please open an issue for it.
Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZwgGZAAKCRAG6kHeT2we hlrHAJ9umz2eygpx4Cb3oNxMnrlknQB1QwCdEdVDQCns5novYPhrMQxOAblSQpQ= =vLyF -----END PGP SIGNATURE-----