Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Encoding::CompatibilityError #1

  • Loading branch information...
commit f0c1ef3e4e6b02f1e3e1b37a18796944208286c7 1 parent 974cf95
@Psli authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  lib/ropencc.rb
  2. +1 −1  lib/ropencc/version.rb
View
1  lib/ropencc.rb
@@ -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
View
2  lib/ropencc/version.rb
@@ -1,3 +1,3 @@
module Ropencc
- VERSION = "0.0.3"
+ VERSION = "0.0.4"
end
Please sign in to comment.
Something went wrong with that request. Please try again.