title: Why do cookie values with whitespace arrive at the client side with quotes?
body: <p>I'm a .NET developer starting to dabble in Java. </p>
  
  <p>In .NET, I can set the value of a cookie to a string with white space in it:
  <code>new HttpCookie("myCookieName", "my value")</code> - and when I read that value on the client side (JavaScript), I get the value I expected (my value). </p>
  
  <p>If I do the same thing in a Java servlet - <code>new Cookie("myCookieName", "my value")</code>, I get the value including the double quotes ("my value"). </p>
  
  <p>Why the difference?  Am I missing something?  How do people handle this in the Java world?  Do you encode the value and then you decode on the client side?  </p>