Transliteration with Iconv in Ruby

前端 未结 3 947
礼貌的吻别
礼貌的吻别 2021-01-12 10:01

When I\'m trying to transliterate a Cyrillic utf-8 string with

Iconv.iconv(\'ascii//ignore//translit\', \'utf-8\', string).to_s

(see questi

3条回答
  •  暖寄归人
    2021-01-12 10:45

    It seems the solution is too tricky for me. Problem solved using stringex gem.

提交回复
热议问题