Saturday, April 23, 2016

Re: A Problem about UnicodeEncodeError

Yeah,this problem is same as what I met.
However the solution the author provided didn't work on my machine.
My friend started the project successfully with python2.x,so I decided to change the version of python.
Thank you very much for your help!

在 2016年4月22日星期五 UTC+8下午10:41:29,Steven Crockett写道:
Hi. Could you post more of the exception traceback?

Here is a workaround others have found for a problem similar to yours:

It seems to be something to do with your PATH setting within Windows possibly containing some non-standard character.


On Friday, April 22, 2016 at 9:09:23 AM UTC-4, nku...@gmail.com wrote:
Hello,
I'm a beginner of Python.
Recently,I want to learn something about django.But I meet a problem:
    I created a django project following the tutorial successfully , but when I ran the command "python manage.py runserver",

    the cmd show the error information:
        UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

I have search for a long time but didn't get the solution.
Could anyone please tell me how to fix it?
Thanks.

P.S.The veision of my python is 3.5.1,and the version of django is 1.9.5.My OS is windows8.1

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8555253a-973a-40af-9ea3-5ecd2c62d4ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment