Psli/ropencc — Issue #1: wrong string encoding
Author: changtimwu
Created: 2011-11-29 22:37:03+00:00
State: open

Encoding of the returned strings are "ASCII-8BIT". This causes problems if the string needs further manipulation.

The following code block illustrates the problem
```
# encoding: UTF-8
require 'ropencc'
s = Ropencc.conv('simp_to_trad', '"忧郁")
puts s #OK
puts "#{s}" # ERROR
```
error message
*incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)*

---------------------------------
Currently, s.force_encoding("UTF-8") could be used as a quick fix.