Ruby Mechanize obtenant une exception force_encoding
Question
Au moins parfois lorsque je navigue sur une page, j'obtiens cette exception
undefined method `force_encoding' for #<String:0x898922c>
Quelqu'un d'autre a vu ce problème?
La solution
Probablement un bug d’incompatibilité 1.8 dans Mechanize:
http://github.com/eric/mechanize/mechanize/commit/commit/7fc8cambule
Autres conseils
Oui, après le hack de pierre précieuse au-dessus, cela fonctionne.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow