Digg API

 

UTF8

Page history last edited by Joe Stump 2 yrs ago

UTF-8

The API returns UTF-8 by default. All of the response types should work fine without any issues, but you will need to declare the character set of the page you display output onto as UTF-8. If you don't do one or the other you'll get odd looking output. You can do this in two ways.

 

  1. Send an HTTP/1.1 header.
    Content-Type: text/html; charset=utf-8
  2. Declare it in your HTML.
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

Comments (0)

You don't have permission to comment on this page.