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

Christian Kristukat <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CAGFw7pFZGcVa08vN5yPyxakgiHZh0sYMc3yFXUoWiiPswggTOw@mail.gmail.com>
I'd say it looks like properly utf-16be encoded:

>>> a = 'aaa\tbbb'
>>> a.encode('utf-16be')
b'\x00a\x00a\x00a\x00\t\x00b\x00b\x00b'

Christian


El jue, 10 oct 2024 a la(s) 1:52 p.m., Vadim Zeitlin ([email protected])
escribió:

> 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/
>

-- 
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/CAGFw7pFZGcVa08vN5yPyxakgiHZh0sYMc3yFXUoWiiPswggTOw%40mail.gmail.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.