Created
December 5, 2011 20:00
-
-
Save brianjlandau/1435109 to your computer and use it in GitHub Desktop.
Nokogiri what did you do to the text of this element!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (rdb:1) text = page.find('.my-class').base.native.content | |
| "5000 ms" | |
| (rdb:1) text.force_encoding("UTF-8") | |
| "5000 ms" | |
| (rdb:1) s = "5000 ms" | |
| "5000 ms" | |
| (rdb:1) s.force_encoding("UTF-8") | |
| "5000 ms" | |
| (rdb:1) text == s | |
| false | |
| (rdb:1) text.force_encoding("US-ASCII") | |
| "5000\xC2\xA0ms" | |
| (rdb:1) s.force_encoding("US-ASCII") | |
| "5000 ms" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeaaaaaah. hexdump might show you that this is a
NO-BREAK SPACEcharacter in the template.