mywxstring.ToAscii().m_str
Do you know that ToAscii() returns a 7-bit-Ascii wxCharBuffer in unicode builds ?That means all extended characters are replaced with underscores, that is not really helpful in many cases.