oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Feature: optional ability to override charset on XMLHttpRequest #219

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Use iUI to load a page/fragment via Ajax and insert it into the DOM.  In some 
cases (depends upon 
server configuration) the charset will not be UTF-8 but will be interpreted as 
UTF-8

What is the expected output? What do you see instead?

You will get the Unicode replacement character � in your document or other 
character set issues.

Original issue reported on code.google.com by msgilli...@gmail.com on 4 Feb 2010 at 10:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The XMLHttpRequest spec covers character set handling here:
http://www.w3.org/TR/XMLHttpRequest/#text-response-entity-body

The XMLHttpRequest Level 2 spec covers the overrideMimeType method here: 
http://www.w3.org/TR/XMLHttpRequest2/#the-overridemimetype-method

Original comment by msgilli...@gmail.com on 5 Feb 2010 at 4:52