This issue was fixed in this changeset:

https://bitbucket.org/galaxy/galaxy-central/commits/8c663e656f64a60dac55979841947e78ce23a473

If you update your Galaxy to the revision on galaxy-dist this problem should go 
away.

Best,
J.

On Oct 18, 2013, at 1:10 PM, lardo <la...@qq.com> wrote:

> I run a local instance of galaxy and edit content of a page, error occurs 
> when the content contains Chinese:
> 
> URL: http://127.0.0.1:8080/page/save
> Module weberror.evalexception.middleware:364 in respond
> >>  app_iter = self.application(environ, detect_start_response)
> Module paste.recursive:84 in __call__
> >>  return self.application(environ, start_response)
> Module paste.httpexceptions:633 in __call__
> >>  return self.application(environ, start_response)
> Module galaxy.web.framework.base:132 in __call__
> >>  return self.handle_request( environ, start_response )
> Module galaxy.web.framework.base:190 in handle_request
> >>  body = method( trans, **kwargs )
> Module galaxy.web.framework:98 in decorator
> >>  return func( self, trans, *args, **kwargs )
> Module galaxy.webapps.galaxy.controllers.page:566 in save
> >>  trans.sa_session.flush()
> Module sqlalchemy.orm.scoping:114 in do
> Module sqlalchemy.orm.session:1718 in flush
> Module sqlalchemy.orm.session:1789 in _flush
> Module sqlalchemy.orm.unitofwork:331 in execute
> Module sqlalchemy.orm.unitofwork:475 in execute
> Module sqlalchemy.orm.persistence:64 in save_obj
> Module sqlalchemy.orm.persistence:558 in _emit_insert_statements
> Module sqlalchemy.engine.base:1449 in execute
> Module sqlalchemy.engine.base:1584 in _execute_clauseelement
> Module sqlalchemy.engine.base:1698 in _execute_context
> Module sqlalchemy.engine.base:1691 in _execute_context
> Module sqlalchemy.engine.default:331 in do_execute
> ProgrammingError: (ProgrammingError) You must not use 8-bit bytestrings 
> unless you use a text_factory that can interpret 8-bit bytestrings (like 
> text_factory = str). It is highly recommended that you instead just switch 
> your application to Unicode strings. u'INSERT INTO page_revision 
> (create_time, update_time, page_id, title, content) VALUES (?, ?, ?, ?, ?)' 
> ('2013-10-18 17:09:01.226991', '2013-10-18 17:09:01.227000', 1, u'test', 
> '<p>aavdx</p><p>\xe4\xb8\xad</p>')
> []
> 
> 
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>  http://lists.bx.psu.edu/
> 
> To search Galaxy mailing lists use the unified search at:
>  http://galaxyproject.org/search/mailinglists/

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to