I finally managed to parse parts of a website:
get '/' do
url = '<website>'
data = Nokogiri::HTML(open(url))
@rows = data.css("td[valign=top] table tr")
erb :muster
end
Now I am trying to extract a certain line in my view. Therefore i put in my HTML code:
<%= @rows[2] %>
And it actually returns the code, but it has problems with UTF8:
<td class="class_name"> </td>
instead it says
<td class="class_name">�</td>
How do I ensure UTF8 during nokogiri parsing, erb, and HTML generation?