in reply to JSON character encoding

is Youtube using a mix of encodings?

Maybe. One way to tell would be to check the response headers. Did you try that? It might be that LWP::Simple doesn't support that in which case you could switch to LWP::UserAgent or similar. Another way might be to specify your desired encoding in the request's Accept header and see if you then get the correct encoding in all responses.

Replies are listed 'Best First'.
Re^2: JSON character encoding
by Bman70 (Acolyte) on May 29, 2017 at 18:37 UTC
    hippo, I tried checking the response headers and got this: content-type: application/json

      Was there a Content-Encoding header?