Skip to content

Commit

Permalink
fix(route): news/fisher-spb code page was fixed (#13971)
Browse files Browse the repository at this point in the history
* code page was fixed

* iconv was removed
  • Loading branch information
denis-ya authored Dec 6, 2023
1 parent d93c99e commit 360fc48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/v2/fisher-spb/news.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
const iconv = require('iconv-lite');
const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
Expand All @@ -16,7 +15,7 @@ module.exports = async (ctx) => {
responseType: 'buffer',
});

const $ = cheerio.load(iconv.decode(response.data, 'windows-1251'));
const $ = cheerio.load(response.data);

const descBuilder = (element) => {
const content = cheerio.load(`<p>${$('.news-message-text', element).html()}</p>`).root();
Expand Down

0 comments on commit 360fc48

Please sign in to comment.