allow lower-case utf-8 encoding specification as well
This commit is contained in:
parent
6d05622a5f
commit
fa0c8d954e
@ -2149,7 +2149,9 @@ icvXMLParse( CvFileStorage* fs )
|
|||||||
}*/
|
}*/
|
||||||
{
|
{
|
||||||
const char* encoding = cvAttrValue( list, "encoding" );
|
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" );
|
CV_PARSE_ERROR( "Unsupported encoding" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user