Skip to content

Commit d5bb94d

Browse files
committed
317 Quick fix for Filter::FullFeed
1 parent e5c916f commit d5bb94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/filter/full_feed.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Author:: progd <http://d.hatena.ne.jp/progd/20120429/automatic_ruby_filter_full_feed>
44
# 774 <http://id774.net>
55
# Created:: Apr 29, 2012
6-
# Updated:: Apr 5, 2013
6+
# Updated:: Jun 23, 2013
77
# Copyright:: progd
88
# 774 Copyright (c) 2012-2013
99
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
@@ -38,7 +38,7 @@ def run
3838

3939
def get_siteinfo
4040
Automatic::Log.puts(:info, "Loading siteinfo from #{@config['siteinfo']}")
41-
siteinfo = JSON.load(open(File.join(assets_dir, @config['siteinfo'])).read)
41+
siteinfo = JSON.load(open(File.join(assets_dir, @config['siteinfo'])).read.force_encoding("UTF-8"))
4242
siteinfo.select! { |info| SITEINFO_TYPES.include? (info['data']['type']) }
4343
siteinfo.sort! { |a, b|
4444
atype, btype = a['data']['type'], b['data']['type']

0 commit comments

Comments
 (0)