I have an asp.net form where the user writes his name, the probem is that I need to be able to accept accent(eg 'á') and tildes (eg ñ) but when I try to retrieve the text writen, the asp.net form takes out this especial characters. How can I retrieve this characters? It's worth to say that all the info the user is going to input is in Spanish, thats why I having this problem
--- Button click action ---
Sub clickAction(Sender As Object, E As eventargs)
Dim nameVar As String = TextBox1.Text
Response.Write(nameVar) 'Or any other method I use to take the data
--- ASP.NET CONTROLS ---
<asp:Textbox ID="TextBox1" runat="server"/> <asp:Button ID="Button1" Text="SAVE" OnClick="clickAction" runat="server"/>
--- What I get ---
If i write lets say "piña" the form gives me "pia" or if i write "mamá" I get "mam"
I really appreciate any help I can get.
Thanks for your time