Convert a unicode string to characters in Ruby?
问题 I have the following string: l\u0092issue My question is how to convert it to utf8 characters ? I have tried that 1.9.3p484 :024 > "l\u0092issue".encode('utf-8') => "l\u0092issue" 回答1: You seem to have got your encodings into a bit of a mix up. If you haven’t already, you should first read Joel Spolsky’s article The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) which provides a good introduction into this type of