X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc385ba9ebd0185d5bc3dcbf9fb3f35e3eac4d7a..674ac8b919eecbc201b5f23b470a567cd0565e10:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index caab4f25bd..81b1ee4942 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -483,11 +483,11 @@ void wxMsgCatalog::ConvertEncoding() the string would not be included into compiled catalog) */ wxString header(StringAtOfs(m_pTransTable, 0)); wxString charset; - int pos = header.Find("Content-Type: text/plain; charset="); + int pos = header.Find(wxT("Content-Type: text/plain; charset=")); if (pos == wxNOT_FOUND) return; // incorrectly filled Content-Type header size_t n = pos + 34; /*strlen("Content-Type: text/plain; charset=")*/ - while (header[n] != '\n') + while (header[n] != wxT('\n')) charset << header[n++]; enc = wxTheFontMapper->CharsetToEncoding(charset, FALSE);