google-code-export / gaewiki

Automatically exported from code.google.com/p/gaewiki
1 stars 0 forks source link

can't show history for Chinese item #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a word which is not English(for my part,it's Chinese)
2.edit the page several times
3.click the history link

What is the expected output? What do you see instead?
should Show the history of this page
I see nothing

What version of the product are you using? On what operating system?
20101109

Please provide any additional information below.
below is the gae record
#

1.
      12-30 09:20AM 30.492 /w/history?page=%E6%83%B3%E6%B3%95 500 207ms 23cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7,gzip(gfe)
      See details

      222.29.39.5 - wangxing.pku [30/Dec/2010:09:20:30 -0800] "GET /w/history?page=%E6%83%B3%E6%B3%95 HTTP/1.1" 500 124 "http://musictoysystem.appspot.com/%E6%83%B3%E6%B3%95" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7,gzip(gfe)" "musictoysystem.appspot.com" ms=207 cpu_ms=23 api_cpu_ms=0 cpm_usd=0.000776

2.
      E 12-30 09:20AM 30.495

      'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
      Traceback (most recent call last):
        File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 515, in __call__
          handler.get(*groups)
        File "/base/data/home/apps/musictoysystem/1.347282622475823589/handlers.py", line 563, in get
          page_title = self.request.get('page').decode('utf-8')
        File "/base/python_runtime/python_dist/lib/python2.5/encodings/utf_8.py", line 16, in decode
          return codecs.utf_8_decode(input, errors, True)
      UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

Original issue reported on code.google.com by wangxing...@gmail.com on 30 Dec 2010 at 5:29

GoogleCodeExporter commented 9 years ago
I fixed this in  issue 30 .  I've tried with "%E6%83%B3%E6%B3%95" and it seems 
to work.  Thank you for reporting this and let me know if there's anything else.

Original comment by justin.forest on 20 Feb 2011 at 1:58