From 7d2b6f58934cefd57812a9ae18cecd74c0a82f09 Mon Sep 17 00:00:00 2001 From: Tvangeste Date: Thu, 28 Jul 2011 15:32:34 +0200 Subject: [PATCH] provide %GDBIG5% for websites --- website.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website.cc b/website.cc index 64d76b41..a22a63fe 100644 --- a/website.cc +++ b/website.cc @@ -81,7 +81,11 @@ sptr< DataRequest > WebSiteDictionary::getArticle( wstring const & str, QString inputWord = gd::toQString( str ); urlString.replace( "%25GDWORD%25", inputWord.toUtf8().toPercentEncoding() ); - urlString.replace( "%25GD1251%25", QTextCodec::codecForName( "Windows-1251" )->fromUnicode( inputWord ).toPercentEncoding() ); + urlString.replace( "%25GD1251%25", + QTextCodec::codecForName( "Windows-1251" )->fromUnicode( inputWord ).toPercentEncoding() ); + + urlString.replace( "%25GDBIG5%25", + QTextCodec::codecForName( "Big-5" )->fromUnicode( inputWord ).toPercentEncoding() ); // Handle all ISO-8859 encodings for( int x = 1; x <= 16; ++x )