mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
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" );
|
||||
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…
Reference in New Issue
Block a user