Writing Unicode Strings using wxFile
Nusret Taşçı
nusi at sofha.de
Wed Nov 29 04:13:57 PST 2006
Amit, can you please try to modify your code to something like this:
> wxString strSearchResults ; //this object has the values of a
> list ctrl in csv format
> wxFile tempFile;
> if(tempFile.Open(wxT("SearchResults.txt"), wxFile::write))
> {
unsigned char magic[2] = {0xFF, 0xFE};
tempFile.Write(&magic, 2);
> tempFile.Write(strSearchResults);
> tempFile.Close();
> }
Regards,
Nusi
More information about the wx-users
mailing list