HI!
I have this piece of a HTML in a View:
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.ActionLink("Edit", "Edit", new { id = item.HändlerID })%>
</td>
<td>
<%= Html.Encode(item.HändlerID) %>
</td>
<td>
<%= Html.Encode(item.HändlerName) %>
</td>
<td>
<%= Html.Encode(item.HändlerOrt) %>
</td>
</tr>
<% } %>
The item is an entity which contain properties with umlauts (Hänlder...) as u can see. Now, when I start the page an error occurs. The "ä" is transformed in a strange character.
How can I avoid this?
Thanks in advanced!