MaxGeek
MaxGeek

Reputation: 1105

C# MVC Textbox MultiLanguage

I have a view with a TextBox for input. However it seems like it doesn't support all Spanish characters. The upside down question mark doesn't seem to work. Is there a simple way to get around this?

  <%= Html.TextBoxFor(m => m.Product.Name, new { style = "width:400px", maxlength = 150 })%>

Upvotes: 0

Views: 1355

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038730

Things to check:

  • Inside your web.config you are using utf-8:

    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
    
  • Inside the <head> section of your site you have a <meta> tag:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
  • Your view files are utf-8 encoded with BOM on the disk

Upvotes: 1

Related Questions