Reviewed by Darin.
<rdar://problem/
3770306> XMLHttpRequest does not honor character set encoding
* khtml/ecma/xmlhttprequest.cpp:
(KJS::XMLHttpRequest::slotData): Get encoding from the transfer job.
* kwq/KWQKJobClasses.h:
* kwq/KWQKJobClasses.mm:
(KIO::TransferJobPrivate::TransferJobPrivate): Added retrievedCharset
flag.
(KIO::TransferJob::retrieveCharset): New method, gets the charset
from the response.
(KIO::TransferJob::queryMetaData): Handle charset.
(KIO::TransferJob::emitReceivedResponse): Clear retreivedCharset flag.
* kwq/KWQLoader.h:
* kwq/KWQLoader.mm:
(KWQResponseTextEncodingName): New function, gets the encoding from the response.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7323
268f45cc-cd09-0410-ab3c-
d52691b4dbfc