title: Posting and returning data using jquery corrupts å ä ö
body: <p>This is a question with a lot of information on the net. Still, I haven't solved it. </p>
  
  <p>I am having a dynamically loaded form on a web page. I submit it using jquery $.post. My page is for Swedes so it needs to work with åäö.</p>
  
  <p>When posting data to server, it will then load the data back into a new table. The returned å ä ö is corrupted. Example åååäääööö = Ã¥Ã¥Ã¥Ã¤Ã¤Ã¤Ã¶Ã¶Ã¶ </p>
  
  <p>The server side is php. I encode all pages that return content to the browser like this: </p>
  
  <pre><code>&lt;?php header('Content-type: text/html; charset=ISO-8859-1'); ?&gt;
  </code></pre>
  
  <p>I have tried utf8_encode and utf8_decode on the server side. No difference actually. </p>
  
  <p>And i tried this: encodeURIComponent($(this).serialize()) where $(this) is the form to be submitted. Of course, this doesn't work and I don't know how to encode an object like $(this).</p>
  
  <p>I thought that this is something that a lot of people does, but it doesn't seem to be a standard solution. </p>
  
  <p>Hence, what I need help with is how can I post a form using javascript/jquery/etc. and handle it on the server side, returning it and å ä ö looks as they should. It's totally fine if the server receives utf8. Should the principle be to only use UTF8 and then the problem is solved? Seems like there should be another solution. </p>