Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试:
result.gsub("‘", "'")
它应该工作。
除了@kiplantt所说的之外,以下内容也有效(刚刚测试过)
puts result.gsub(/(\`)/, "\\'")