wxCSConv::cMB2WX

Robert Roebling robert at roebling.de
Sat Mar 1 08:57:32 PST 2008


  Hi,

I wonder what the output is of wxCSConv::cMB2WX() when
run in UTF8 mode? Do I get a wxWCharBuffer which I need
to further encode in UTF8?
Background: I want to fetch an URL from FireFox, which
uses several dnd format ("targets") which the app can
choose from and I chose the first offered "text/x-moz-url"
which is encoded in UCS2, at least in a two-byte encoding.

So do I need to do this?

....OnData( size_t len, const void* buf )
{
    wxCSConv conv("UCS2");
    wxWCharBuffer res = conv.cMB2WX( (const char*) buf );
    wxString url = res;
}

 Robert







More information about the wx-dev mailing list