jquery - Handling copyright symbol in javascript variable coming from MVC3 -
jquery - Handling copyright symbol in javascript variable coming from MVC3 -
i have jquery dialog multi tab layout, each tab partial view returned mvc3 web application called using jquery ajax. final tab simple overview of info entered on previous tabs review screen before user marks info finish clicking button.
when model returned controller view map several server side model variables variables in javascript during document.ready jquery function. these variables later used build query string passed server upon click of confirm button.
i erors when 1 or more of these variables contains copyright symbol (©). when set javascript variables calling encodeuricomponent javascript method (as using these variables in query string). don't know or how many variables contain copyright symbol. when set variables on client side copyright symbol set "©", can seen when calling alert , variable name. problem calling encodeuricomponent on gives result not right , causes jquery ajax calls fail.
javascript jquery asp.net-mvc-3
Comments
Post a Comment