diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/wiki/lib/mediawikiapi.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/wiki/lib/mediawikiapi.rb b/sources/wiki/lib/mediawikiapi.rb index d799041..c924f66 100644 --- a/sources/wiki/lib/mediawikiapi.rb +++ b/sources/wiki/lib/mediawikiapi.rb @@ -52,7 +52,9 @@ module MediaWikiAPI path = build_path(params) http = Net::HTTP.start(@host, @port) # puts "Getting path [#{path}]" - http.get(path, @headers) + result = http.get(path, @headers) + result.body.force_encoding('UTF-8') + result end def query(params) |