Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #569 (defect)

Opened 2 years ago

Last modified 2 years ago

Encoding problems when accessing cherrypy instances from links

Status: closed (fixed)

Reported by: guest Assigned to: fumanchu
Priority: normal Milestone: 3.0
Component: CherryPy code Keywords:
Cc:

Using the links webbrowser (it's like lynx but different codebase), when I contact cherrypy running on my localhost, I get a trace (included below). The most significant part of the error is this text, "LookupError?: unknown encoding: x-mac-ce" in /usr/lib/python2.4/site-packages/cherrypy/filters/encodingfilter.py

21/Sep/2006:04:11:57 HTTP INFO Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 110, in _run
    applyFilters('before_finalize')
  File "/usr/lib/python2.4/site-packages/cherrypy/filters/__init__.py", line 151, in applyFilters
    method()
  File "/usr/lib/python2.4/site-packages/cherrypy/filters/encodingfilter.py", line 18, in before_finalize
    ct.params['charset'] = find_acceptable_charset()
  File "/usr/lib/python2.4/site-packages/cherrypy/filters/encodingfilter.py", line 106, in find_acceptable_charset
    if encode(encoding):
  File "/usr/lib/python2.4/site-packages/cherrypy/filters/encodingfilter.py", line 39, in encode_string
    body.append(chunk.encode(encoding))
LookupError: unknown encoding: x-mac-ce
Request Headers:
  Content-Length:
  ACCEPT-CHARSET: us-ascii, ISO-8859-1, ISO-8859-2, ISO-8859-4, ISO-8895-5, ISO-8859-7, ISO-8895-9, ISO-8859-13, ISO-8859-15, ISO-8859-16, windows-1250, windows-1251, windows-1257, cp437, cp737, cp850, cp852, cp866, x-cp866-u, x-mac, x-mac-ce, x-kam-cs, koi8-r, koi8-u, TCVN-5712, VISCII, utf-8
  USER-AGENT: Links (1.00pre12; Linux 2.6.15-27-386 i686; 80x24) (Debian pkg 0.99+1.00pre12-1)
  CONNECTION: Keep-Alive
  HOST: localhost:8080
  ACCEPT: */*
  Remote-Addr: 127.0.0.1
  Content-Type:
  Remote-Host: 127.0.0.1
127.0.0.1 - - [21/Sep/2006:04:11:57] "GET / HTTP/1.1" 500 1542 "" "Links (1.00pre12; Linux 2.6.15-27-386 i686; 80x24) (Debian pkg 0.99+1.00pre12-1)"

Change History

09/26/06 00:52:05: Modified by fumanchu

  • owner changed from rdelon to fumanchu.
  • status changed from new to assigned.
  • description changed.
  • milestone set to 3.0.

09/26/06 00:57:20: Modified by fumanchu

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed for CP 3 in [1376].

10/12/06 16:25:51: Modified by lawouach

Fixed for CP 2 in [1396].

Hosted by WebFaction

Log in as guest/cpguest to create tickets