You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Encoding of the returned strings are "ASCII-8BIT". This causes problems if the string needs further manipulation.
The following code block illustrates the problem
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.
The text was updated successfully, but these errors were encountered: