We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to know the charset of a target url. but there is no charset in the response html HEAD. How can I know the charset,? do you have any good idea?
The text was updated successfully, but these errors were encountered:
Look in $curl->response_headers.
$curl->response_headers
Sorry, something went wrong.
most of the internet sites can reply the char-set in Headers. but some cannot.
$curl = new Curl(); $curl->get('https://github.com/timeline.json'); echo $curl->response_headers['Content-Type']; // application/json; charset=utf-8
This works for me.
No branches or pull requests
I want to know the charset of a target url. but there is no charset in the response html HEAD. How can I know the charset,? do you have any good idea?
The text was updated successfully, but these errors were encountered: