I'm just starting to learn Ruby and there is a problem with encoding;
'RubyGames' requires a mechanism agent '=' McEnizet New agent .get ('mural .....') agent. Page.Secret ('#susversalt A'). Do each. Items | C = mechanize.new c.get (item.attributes ['href']) puts c.page.search ('# league'). End of text
Output text is shown in this way © nsekj├ © tt When it should have been shown like this Hønsekjøtt. I'm using Ruby 1.8.7 Can anyone tell me in the right direction?
Where are you looking at the output? Is this on the console? If so, are you running Windows XP? I have found that the console on my Windows Setup (I do develop in the GIT + terminal) does not correctly show non-ASCII characters on my Mac, they look fine on the terminal.
If you suspect that this is a problem, then type the output into a file and then see that file in the text editor it will show you the correct output.
Comments
Post a Comment