854: rb-site install failed on a database with utf-8 charset

ytht****@gmai***** (Google Code) (Is this you? Claim this profile.)
July 26, 2009
What steps will reproduce the problem?
1. use mysql backend, create database like this:
create database reviewboard CHARACTER SET utf8 COLLATE utf8_bin;
2. run rb-site install, rb-site install will failed with the follwing log(
see attachment)

What is the expected output? What do you see instead?
I want to see rb-site install sucess.
But it failed.

What operating system are you using? What browser?
Debian etch.

Please provide any additional information below.
Domain Name [xxxx]: Root Path [/reviews/]: Media URL [media/]: Database Type: Database Name [reviewboard]: Database Server [localhost]: Database Username: Cache Type: Memcache Server [memcached://localhost:11211/]: Web Server: Python Loader: Username [admin]: E-Mail Address: Traceback (most recent call last):
  File "/usr/bin/rb-site", line 5, in ?
    pkg_resources.run_script('ReviewBoard==1.0alpha1', 'rb-site')
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 1166, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha1-py2.4.egg/EGG-INFO/scripts/rb-site", line 1230, in ?
    main(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha1-py2.4.egg/EGG-INFO/scripts/rb-site", line 1225, 
#1 ytht****@gmai***** (Google Code) (Is this you? Claim this profile.)
I have to install reviewboard site using database with latin charset.
After I have installed, then change table charset to utf8.
This is my workaround for save text with chinese charater correctly.
david
#2 david
This looks like it's actually a problem in the version of simplejson included with
Django. I don't think there's any workaround other than the one you stated.
  • +ThirdParty