google-code-export / pygowave-server

Automatically exported from code.google.com/p/pygowave-server
Apache License 2.0
1 stars 1 forks source link

Fails if I try to use non-english language #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to "Waves"
2. Type "В рот мне ноге" In New Wave's title field
3. Press Create

What is the expected output? What do you see instead?

I expect a new wave to be created, but instead it fails epically:
==>
Warning at /waves/
Incorrect string value: '\xD0\x92 \xD1\x80\xD0...' for column 'title' at 
row 1
Request Method: POST
Request URL:    http://pygowave.p2k-network.org/waves/
Exception Type: Warning
Exception Value:    
Incorrect string value: '\xD0\x92 \xD1\x80\xD0...' for column 'title' at 
row 1
Exception Location: /usr/lib/python2.6/site-packages/MySQLdb/cursors.py 
in _warning_check, line 89
Python Executable:  /usr/bin/python
Python Version: 2.6.0
Python Path:    ['/srv/http/pygowave_project', '/usr/lib/python2.6/site-
packages/IniAdmin-0.2-py2.6.egg', '/usr/lib/python2.6/site-
packages/TracXMLRPC-0.1-py2.6.egg', '/usr/lib/python2.6/site-
packages/PyAMF-0.4.1-py2.6-linux-x86_64.egg', '/usr/lib/python26.zip', 
'/usr/lib/python2.6', '/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', 
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', 
'/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/PIL']
Server time:    Thu, 6 Aug 2009 19:38:31 +0200
<==

What browser are you using? Which version?
Google Chrome   3.0.196.0 (Official Build 22005)
WebKit  532.0
V8  1.2.14.14
User Agent  Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.0 
(KHTML, like Gecko) Chrome/3.0.196.0 Safari/532.0

Please provide any additional information below.

It looks like pygowave is blissfully unaware of any characters not in 
LATIN1.

Original issue reported on code.google.com by ilya.kas...@gmail.com on 6 Aug 2009 at 5:44

GoogleCodeExporter commented 9 years ago
Client configuration - Firefox/3.0.12/Win, Opera/9.64 Linux i686, 
Iceweasel/3.0.6
(Debian-3.0.6-1)

Server latest - pygowave (0.2) started FreeBSD 6.x, orbited-0.7.10,
rabbitmq-server-1.6.0 with
patched rabbitmq-stomp-1.6.0, Apache/2.2.11 (FreeBSD), Python 2.5.2

Started waves in Cyrillic in the title work normally.
Локаль в KOI8-R

Original comment by x.xl...@gmail.com on 7 Aug 2009 at 3:32