Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support utf8 description #234

Merged
merged 1 commit into from Jul 28, 2012
Merged

support utf8 description #234

merged 1 commit into from Jul 28, 2012

Conversation

yetist
Copy link
Contributor

@yetist yetist commented Jul 27, 2012

if use chinese as api description, will get error:

Exception Value:    

'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128). -- Note: Markdown only accepts unicode input!Exception Value:    

test code here:

from djangorestframework.view import View
from djangorestframework.resources import ModelResource

class ApiListView(View):
    """这里提供所有已完成api的入口链接,方便测试与调试使用"""
    ......
class Collects(ModelResource):
    """应用程序评论"""
    ......

my branch fixed the bug, now support utf8 description, so user can write description use Chinese, Japanese or Korea。

tomchristie added a commit that referenced this pull request Jul 28, 2012
support utf8 description
@tomchristie tomchristie merged commit 6dff048 into encode:master Jul 28, 2012
@tomchristie
Copy link
Member

Thanks! I've added you to th Authors file. If you'd like me to put in your full name along with your github username, either let me know in this thread, or submit a pull req for it.

Thanks again,

Tom

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.

None yet

2 participants