I change the database from the default from sqlite to postgre, then the problem 
go away!!!




------------------ Original ------------------
From:  "lardo";<la...@qq.com>;
Date:  Sat, Oct 19, 2013 11:26 AM
To:  "Jeremy Goecks"<jeremy.goe...@emory.edu>; 
Cc:  "galaxy-dev"<galaxy-dev@lists.bx.psu.edu>; 
Subject:  Re: [galaxy-dev] page editor problem when saving Chinese



My local instance's version was the latest version(I downloaded last night),  
but this problem can't be fixed. 


lardo@ubuntu:~/galaxy-dist$ hg pull -u
pulling from https://bitbucket.org/galaxy/galaxy-dist/
searching for changes
no changes found







------------------ Original ------------------
From:  "Jeremy Goecks";<jeremy.goe...@emory.edu>;
Date:  Sat, Oct 19, 2013 05:28 AM
To:  "lardo"<la...@qq.com>; 
Cc:  "galaxy-dev"<galaxy-dev@lists.bx.psu.edu>; 
Subject:  Re: [galaxy-dev] page editor problem when saving Chinese



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