Guest User

jQuery $.get() charset of reply when no header is set

a guest
Feb 28th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $.ajaxSetup({
  2. 'beforeSend' : function(xhr) {
  3. xhr.overrideMimeType('text/html; charset=UTF-8');
  4. },
  5. });
  6. $('#stuff').load('/yourresource.file'); // your ajax load
Add Comment
Please, Sign In to add comment