allow lower-case utf-8 encoding specification as well

This commit is contained in:
Vadim Pisarevsky 2011-05-21 09:29:21 +00:00
parent 6d05622a5f
commit fa0c8d954e

View File

@ -2149,7 +2149,9 @@ icvXMLParse( CvFileStorage* fs )
}*/
{
const char* encoding = cvAttrValue( list, "encoding" );
if( encoding && strcmp( encoding, "ASCII" ) != 0 && strcmp( encoding, "UTF-8" ) != 0 )
if( encoding && strcmp( encoding, "ASCII" ) != 0 &&
strcmp( encoding, "UTF-8" ) != 0 &&
strcmp( encoding, "utf-8" ) != 0 )
CV_PARSE_ERROR( "Unsupported encoding" );
}