try to check the charset from the body if not found in the response header