Commits

Lars Yencken committed 135d5ea

Removed coersion to unicode in pinyin.views, since Django now does this.

  • Participants
  • Parent commits bdf0e57

Comments (0)

Files changed (1)

File pinyin/views.py

 
     # We have a query to search.
     startTime = time.time()
-    query = unicode(request.REQUEST['query'], 'utf8').strip()
+    query = request.REQUEST['query'].strip()
 
     # Check for a preceding query.
 
         return HttpResponseRedirect('/%skana/' % settings.SERVER_PREFIX)
 
     startTime = time.time()
-    query = unicode(request.REQUEST['query'], 'utf8').strip()
+    query = request.REQUEST['query'].strip()
 
     if query:
         context['query'] = query
     """ 
     """
     try:
-        query = unicode(request.REQUEST['query'], 'utf8').strip()
+        query = request.REQUEST['query'].strip()
         lastLogId = int(request.REQUEST['lastLog'])
         lastLog = models.LookupLog.objects.get(id=lastLogId)
 
 
 def chineseResult(request):
     try:
-        query = unicode(request.REQUEST['query'], 'utf8').strip()
+        query = request.REQUEST['query'].strip()
         lastLogId = int(request.REQUEST['lastLog'])
         lastLog = models.LookupLog.objects.get(id=lastLogId)