Created
February 3, 2012 12:21
-
-
Save hsbt/1729918 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.unshift('.') | |
require 'tdiary' | |
module TDiary | |
class Comment | |
attr_accessor :body | |
end | |
end | |
PStore.new('tmp/data/recent_comments').transaction do |pdb| | |
0.upto(1).each do |i| | |
pdb['comments'][i][0].body.tap do |str| | |
str = str.force_encoding('UTF-8') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment