Inifinity scroll not working when not using UTF-8 encoding

1 reply · opened Feb 27, 2017

JjuanleFeb 27, 2017

Hello,

Firstly thanks for the great work. I really like the infinity scroll functionality, I have implemented here

https://www.eventplannerspain.com/newtemplate/event-suppliers.asp?idsubcat=16&idprov=46
https://www.eventplannerspain.com/newtemplate/event-suppliers.asp?idsubcat=16&idprov=46&page=2

both pages are fine, however when loading from https://www.eventplannerspain.com/newtemplate/event-suppliers.asp?idsubcat=16&idprov=46 (try to click load more in the middle of the bottom of the page) the new items that are loaded are not displaying the special (Spanish characters in this case) correctly

I get something like below

sultor�a de comunicaci�n, producci� M�laga, organizaci�n

Could you please suggest how to infinity scroll without UTF-8? I do not understand reason for loading the characters not correctly if the page=2 is loaded correctly as an independent page.

Thanks a lot and have a nice day
Juan

JjuanleFeb 27, 2017

I found the response in the following link

http://stackoverflow.com/questions/16340344/how-to-load-iso-8859-1-content-via-ajax-in-jquerymobile-1-3-1-with-correct-chara

By adding the following script everything works fine

$.ajaxSetup({
contentType: 'application/x-www-form-urlencoded; charset=ISO-8859-1',
beforeSend: function(jqXHR) {
jqXHR.overrideMimeType('application/x-www-form-urlencoded; charset=ISO-8859-1');
}
});

You can mark item as solved. I hope other users will find this post useful

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard