Skip to content

Conversation

@miguelsanchezvigo
Copy link

forceResponseCharset

This option allows user to force the charset of the response. This is useful when no charset is specified in response.

Example usage

rest.post('http://twaud.io/api/v1/users/danwrong.json', {
  forceResponseCharset: 'iso-8859-15'
}).on('complete', function(data) {
  console.log(data[0].message); // auto convert to object
});

@easternbloc
Copy link
Collaborator

Hi Miguel thanks for contributing.

I'm gonna need some tests before this can go any further.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants