views:

215

answers:

1

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!

+2  A: 

Try to re-save your view in different encoding. It's a really loooooong shot, but who knows.

in VS => File => Advanced Save Options => Unicode 650001 => OK

Arnis L.
I used this already, but without signatures ... when I use the option with sigantures it works. Thanks
Rookian
Glad to help. Despite that I'm quite surprised I guessed it correctly. :D
Arnis L.