What actually happens when AJAX calls another encoding page?

Assuming my page is UTF-8 encoded, and my code calls a.php, where it a.phpis retrieved via ajax (jQuery) $.get, and the specified file has a different encoding like the windows-1255one indicated in the header? What is going on behind the scenes? Thanks

+3
source share
1 answer

Well, everything is just bytes until the web browser interprets them and translates them into characters for presentation to the user. Therefore, it does not matter what happens in AJAX, as in any case there will be an encoding conflict.

, AJAX "å", UTF-8, 0xc3a5. , - , UTF-8, "å" , . , - , , Latin1, , 0xc3 0xa5, , , Ã ¥.

+1

All Articles