A
A
Alexander Nameless082018-03-03 18:16:12
JavaScript
Alexander Nameless08, 2018-03-03 18:16:12

Why are the encoding flies when ajax request method load jQuery?

I make queries like:

$('#sketchContainer').load('../inc/calc-parts/sketch-straight.php #sketchStraight');

In the downloadable files, I indicated: The site also has utf-8 encoding: All other content is normal, only the downloadable block. I checked in browsers: Chrome 64, FF58, Opera51 are the same everywhere. Has anyone experienced something similar?
header("Content-type: text/html; charset=utf-8");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2018-03-03
@rPman

what curl -v produces http://yoursite.../inc/calc-parts/sketch-straight.php
ps a bit confuses the space after php in the link, plus it makes no sense and it’s not nice to specify anchor # in data links, this is purely html ui solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question