I am trying to add an ajax form to my application. The problem is that I want to pass my input as gb2312 encoded. However I wasn't able to do
new {accept-charset="gb2312"}
as msdn suggested. I guess it's because the "-" in "accept-charset" breaks the CSharp variable naming rule. I tried to add an "@" in front of "accept-charset" but it didn't work either. Does anyone know what trick should I apply to solve this problem?