mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Some more encoding in bgl (issue #53 again)
This commit is contained in:
parent
6ae3a3a4d5
commit
c071973a0c
|
@ -597,6 +597,11 @@ bgl_entry Babylon::readEntry( ResourceHandler * resourceHandler )
|
|||
alternate.reserve( len );
|
||||
for(unsigned int a=0;a<len;a++) alternate += block.data[pos++];
|
||||
convertToUtf8( alternate, SOURCE_CHARSET );
|
||||
|
||||
// Try to repair malformed forms
|
||||
if( alternate.find( "&#" ) != string::npos )
|
||||
alternate = Html::unescapeUtf8( alternate );
|
||||
|
||||
alternates.push_back( alternate );
|
||||
alternate.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue