Skip to content

Instantly share code, notes, and snippets.

@aliprogrammer69
Created November 21, 2018 12:02
Show Gist options
  • Select an option

  • Save aliprogrammer69/3f001178c7205078c54f58725529e821 to your computer and use it in GitHub Desktop.

Select an option

Save aliprogrammer69/3f001178c7205078c54f58725529e821 to your computer and use it in GitHub Desktop.
Change WebApi 2 Supported Encoding to encode new emojies
httpConfiguration.Formatters.JsonFormatter.SupportedEncodings.Clear();
httpConfiguration.Formatters.JsonFormatter.SupportedEncodings.Add(System.Text.Encoding.Unicode);//utf-16le
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment