Writing Unicode Strings using wxFile

Amit amitgupta.it at gmail.com
Sun Nov 26 22:07:35 PST 2006


Hi,

wxFile is failing to write unicode string. I am using the following
code

        wxString strSearchResults = wxT("åååööää");
	wxFile tempFile;
	if(tempFile.Open(wxT("SearchResults.txt"), wxFile::write))
	{
		tempFile.Write(strSearchResults);
		tempFile.Close();
	}

Please let me know if I am missing out something.

Thanks in advance.

Regards
- Amit Gupta







More information about the wx-users mailing list