开发者

C# MVC Textbox MultiLanguage

I have a view with a TextBox for input. However it seems like it doesn't support all S开发者_如何学Pythonpanish 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 })%>


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜