From 4150770d4ae5be70c732ce6ba79f05d870c18173 Mon Sep 17 00:00:00 2001 From: pessi-v Date: Thu, 4 Jul 2024 23:33:35 +0200 Subject: [PATCH] remove Kconv.toutf8 conversion, which is causing a lot of characters to be misinterpreted as chinese characters --- lib/ogpr/fetcher/html_fetcher.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ogpr/fetcher/html_fetcher.rb b/lib/ogpr/fetcher/html_fetcher.rb index c788fd3..2ef8f1f 100644 --- a/lib/ogpr/fetcher/html_fetcher.rb +++ b/lib/ogpr/fetcher/html_fetcher.rb @@ -17,7 +17,6 @@ def fetch(headers = {}) acceptable_content!(head.headers[:content_type]) res = send_request(:get, @uri, headers) - Kconv.toutf8(res.to_str) rescue => e raise e end