Skip to content

Commit

Permalink
fix Encoding::CompatibilityError #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Psli committed Nov 30, 2011
1 parent 974cf95 commit f0c1ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/ropencc.rb
Expand Up @@ -32,6 +32,7 @@ def conv(dicttype, str)
out_str = ptr.read_string
LibC.free ptr
LibOpenCC.opencc_close od
out_str.force_encoding("UTF-8") if out_str.respond_to?(:force_encoding)
out_str
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ropencc/version.rb
@@ -1,3 +1,3 @@
module Ropencc
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit f0c1ef3

Please sign in to comment.