title: Django return " 500 INTERNAL SERVER ERROR" when $.post a utf-8 string
body: <p>I met a issue that django always return "500 internal server error" when I tried to post a utf-8 string(e.g. Chinese string). But I tried to post a ascii string, it looks OK. Furthermore, It works OK on my own Archlinux machine, but it can't work on another CentOS server. How can I avoid this issue?</p>
  
  <p>template:</p>
  
  <pre><code> $(".palcesubm").click(function(){
          var location = $('#detail_address').val()
          $.post('/wechat/locate/select/create/',
                  {'location':location}, function(){
                  window.location = "/wechat/locate/baidu/";
          })
      });
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>@csrf_exempt
  def create_location(request):
      if request.method == 'GET':
          return render_to_response('create_location.html')
      else:
          print request.POST.get('location')
          request.session['location'] = request.POST.get('location')
          return HttpResponse('success')
  </code></pre>