Commit fa0c8d95 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

allow lower-case utf-8 encoding specification as well

parent 6d05622a
......@@ -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" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment