allow lower-case utf-8 encoding specification as well

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 6d05622a5f
commit fa0c8d954e
  1. 4
      modules/core/src/persistence.cpp

@ -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" );
}

Loading…
Cancel
Save