I’m sending data from one page to the next in an MVC2 app. Page 1 sends price information, and Page 2 displays a total w/ taxes. Using Fiddler, I can see my data being posted properly from Page 1 as such:
itemA_3225=Description&itemB_3225=123&itemCurrency_3225=USD&itemSymbol_3225=%24
Then, in the Post method of my Controller, I have this line:
mySymbol = Request.Form["itemSymbol_" + itemID].ToString();
and mySymbol gets updated properly as "$".
However, when I try doing this for Euros it doesn’t work, even though everything else seems similar:
itemA_3226=Description&itemB_3226=123&itemCurrency_3226=EUR&itemSymbol_3226=%80
But in my Controller the mySymbol variable gets set to "". Any ideas? $ and £ work fine, but Euros and ƒ do not work.
Don’t use
%80in the URI for a Euro symbol. The character set for the URI is always UTF-8, so you must send the characterU+20AC, or, uuencoded,%E2%82%ACHope this helps!