mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Babylon .bgl: don't encode to utf-8 already encoded articles (tag "<charset c=U>")
This commit is contained in:
parent
c69534cb34
commit
c79899f916
|
@ -619,6 +619,9 @@ void Babylon::convertToUtf8( std::string &s, unsigned int type )
|
||||||
if( s.size() < 1 ) return;
|
if( s.size() < 1 ) return;
|
||||||
if( type > 2 ) return;
|
if( type > 2 ) return;
|
||||||
|
|
||||||
|
if( s.compare( 0, 13, "<charset c=U>") == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
std::string charset;
|
std::string charset;
|
||||||
switch( type )
|
switch( type )
|
||||||
{
|
{
|
||||||
|
|
|
@ -204,7 +204,7 @@ public:
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ParserVersion = 15
|
ParserVersion = 16
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue