"UnicodeEncodeError",'charmap' codec can't encode characters In Django
I am working with Django. I have a HTML form which collects information from the user,wrote a function which post the value.But when I amtrying to render the value to an URL.(Example:return of the function is like:http://api.test.com?search=topic?title=USA).
But it shows UnicodeEncodeError with 'charmap' codec can't encode characters I googled and try to solve from other solution found.Such as using external l开发者_Go百科ibraries.Actually,I want to add user parameter within URL that will be shown in a text area.
How can I do that?You should use Urllib.urlencode to create get parameters to be added to the url.
I guess, that should solve your problem
精彩评论