开发者

C# MVC Textbox MultiLanguage

开发者 https://www.devze.com 2023-01-30 19:42 出处:网络
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

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

精彩评论

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

关注公众号