Some more encoding in bgl (issue #53 again)

This commit is contained in:
Abs62 2012-11-18 02:03:59 +04:00
parent 6ae3a3a4d5
commit c071973a0c

View file

@ -597,6 +597,11 @@ bgl_entry Babylon::readEntry( ResourceHandler * resourceHandler )
alternate.reserve( len ); alternate.reserve( len );
for(unsigned int a=0;a<len;a++) alternate += block.data[pos++]; for(unsigned int a=0;a<len;a++) alternate += block.data[pos++];
convertToUtf8( alternate, SOURCE_CHARSET ); convertToUtf8( alternate, SOURCE_CHARSET );
// Try to repair malformed forms
if( alternate.find( "&#" ) != string::npos )
alternate = Html::unescapeUtf8( alternate );
alternates.push_back( alternate ); alternates.push_back( alternate );
alternate.clear(); alternate.clear();
} }