use utf8_remove_bom
This commit is contained in:
@@ -30,15 +30,7 @@ bool IniFile::ReadFile( const CString &sPath )
|
|||||||
return true; /* eof */
|
return true; /* eof */
|
||||||
}
|
}
|
||||||
|
|
||||||
if( line.size() >= 3 &&
|
utf8_remove_bom( line );
|
||||||
line[0] == '\xef' &&
|
|
||||||
line[1] == '\xbb' &&
|
|
||||||
line[2] == '\xbf'
|
|
||||||
)
|
|
||||||
{
|
|
||||||
/* Obnoxious NT marker for UTF-8. Remove it. */
|
|
||||||
line.erase(0, 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( line == "" )
|
if( line == "" )
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user