Skip to content

Instantly share code, notes, and snippets.

@yamaneko1212
Created November 8, 2011 03:34
Show Gist options
  • Save yamaneko1212/1346928 to your computer and use it in GitHub Desktop.
Save yamaneko1212/1346928 to your computer and use it in GitHub Desktop.
日本語を含むUnicodeのJSON文字列を得る. ref: http://qiita.com/items/935
import json
data = {u'title': u'ほげ'}
json_data = json.dumps(data, ensure_ascii=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment