Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

JavaScriptSerializer().Serialize returning different results on different machines

$
0
0

Hello,

We have a problem with a web application which uses JavaScriptSerializer().Serialize to encode a JSON string. We get different results on our Test and Production Servers.

We thought it was due to the version of System.Web.Extensions which were different on each machine.

Test 3.5.30729.5446

Prod. 3.5.30729.5458

but after synchronizing these versions on both machine we still get different results.

I wrote a WPF app which outputs the results. This is the exact line of code I am using.

newJavaScriptSerializer().Serialize(HttpUtility.HtmlEncode(txtHTML.Text));

The result on Test when a " is entered in txtHTML.text is: \u0026quot;

The result on Production when a " is entered in txtHTML.text is: "

Does anyone have any idea why this may be?

thanks,

sivilian


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>