robinvanderknaap / MvcJqGrid

Fluent jqGrid Html Helper for ASP.NET MVC
www.playground.webpirates.nl/mvcjqgrid
GNU Lesser General Public License v3.0
101 stars 74 forks source link

i18n characters #6

Closed kalmarg closed 12 years ago

kalmarg commented 12 years ago

Filtering with non standard characters makes complete GridSettings.Where equals to null.

Solution:

in public static Filter Create(string jsonData) change the method of generating bytes to MemoryStream from the used method to

var ms = new System.IO.MemoryStream(Encoding.Convert(Encoding.Default, Encoding.UTF8, Encoding.Default.GetBytes(jsonData)));

daanl commented 12 years ago

Kalmarg could you make a pull request with the fix and unit test?