Map illegal UTF-8 sequences to a range in Unicode's private use area as
discussed recently on wx-users. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -480,7 +480,7 @@ wxConvBrokenFileNames::wxConvBrokenFileNames(const wxChar *charset)
|
|||||||
{
|
{
|
||||||
if ( !charset || wxStricmp(charset, _T("UTF-8")) == 0
|
if ( !charset || wxStricmp(charset, _T("UTF-8")) == 0
|
||||||
|| wxStricmp(charset, _T("UTF8")) == 0 )
|
|| wxStricmp(charset, _T("UTF8")) == 0 )
|
||||||
m_conv = new wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_OCTAL);
|
m_conv = new wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_PUA);
|
||||||
else
|
else
|
||||||
m_conv = new wxCSConv(charset);
|
m_conv = new wxCSConv(charset);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user