我有我的应用程序运行在红宝石1.8.7和轨道3.0.11,我升级它与1.9.2红宝石和轨道3.2 0.2。 它有一个UTF转换器这样错误:在UTF-8中无效的字节序列在升级后红宝石1.8.7红宝石1.9.2
@utf8_converter = Iconv.new('UTF-8//IGNORE', 'UTF-8')
......
......
def utf8(untrusted_string)
valid_string = @utf8_converter.iconv(untrusted_string + ' ')[0..-2]
return valid_string
对我理解语言Iconv不支持红宝石1.9.2。 如何让它运行?
感谢