Page name in website non english character issue

Hi,

we saw that the page name is taken from the item name. If the item name contains non-english characters like ä then the page name that builds the url throws an error. The problem is that the page name seems to be not editable:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 51: ordinal not in range(128)

We will fix this.

Will be great if you can share a full trace next time!

This seems to be working. Can you share the exact Item Name and trace

Hi, the item name is “Bioland DE ÖKO 006”, so the page name is:

bioland-de-öko-006

The error when recalling the page in browser is the following:

UnicodeEncodeError

  UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 51: ordinal not in range(128)

Traceback (most recent call last)

  File "frappe-bench/apps/frappe/frappe/middlewares.py",
      line 15,
      in __call__
  return super(StaticDataMiddleware, self).__call__(environ, start_response)

  File "frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py",
      line 558,
      in __call__
  cleaned_path = cleaned_path.encode(sys.getfilesystemencoding())

  UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 51: ordinal not in range(128)

  The debugger caught an exception in your WSGI application.  You can now
  look at the traceback which led to the error.  To 
switch between the interactive traceback and the plaintext one, you can 
click on the "Traceback" headline.  From the text traceback you can also
 create a paste of it. For code execution mouse-over the frame you want 
to debug and click on the console icon on the right side.You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:dump() shows all variables in the framedump(obj) dumps all that's known about the object

@info thanks let me check this tomorrow. Which version are you on?

We have the last versions to our knowledge:
ERPNext: v4.10.0
Frappe Framework: v4.5.2
Shopping Cart: v0.5.0

@pdvyas can you check?

Unable to replicate, it’s able to encode headers correctly.

 % curl -I http://localhost:8000/bioland-de-%C3%B6ko-006
HTTP/1.0 200 OK
Content-Type: text/html; charset: utf-8
Content-Length: 7163
X-Page-Name: bioland-de-öko-006
X-From-Cache: False
Set-Cookie: sid=Guest; Expires=Sun, 09-Nov-2014 12:47:11 GMT; Path=/
Server: Werkzeug/0.9.6 Python/2.7.8
Date: Thu, 06 Nov 2014 07:17:11 GMT

To reproduce it, please administrate the item in order to show the item in website and then try by clicking the item in the website product list.