Nokogiri, open-uri, and Unicode Characters

前端 未结 8 2031
故里飘歌
故里飘歌 2020-11-30 01:56

I\'m using Nokogiri and open-uri to grab the contents of the title tag on a webpage, but am having trouble with accented characters. What\'s the best way to deal with these

8条回答
  •  野性不改
    2020-11-30 02:21

    Just to add a cross-reference, this SO page gives some related information:

    How to make Nokogiri transparently return un/encoded Html entities untouched?

提交回复
热议问题