use utf8_remove_bom

This commit is contained in:
Glenn Maynard
2004-12-03 01:04:31 +00:00
parent afcacbdf85
commit 0d0cb39d75
+1 -9
View File
@@ -30,15 +30,7 @@ bool IniFile::ReadFile( const CString &sPath )
return true; /* eof */
}
if( line.size() >= 3 &&
line[0] == '\xef' &&
line[1] == '\xbb' &&
line[2] == '\xbf'
)
{
/* Obnoxious NT marker for UTF-8. Remove it. */
line.erase(0, 3);
}
utf8_remove_bom( line );
if( line == "" )
continue;