GitLaboratory / demovibes

Automatically exported from code.google.com/p/demovibes
0 stars 0 forks source link

Can't add songs with Chinese Characters #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
reproduce:
Upload a file with kanji like "test-漢字-ひらがな-カタカナ.mp3"

problem:
the file itself was uploaded correctly, with all characters intact. but in
the db everything was replaced with ????. django shows a warning:

Incorrect string value: '\xE6\xBC\xA2\xE5\xAD\x97...' for column 'file' at
row 1
/usr/lib/pymodules/python2.6/MySQLdb/cursors.py in _warning_check, line 82

In the traceback I see no demovibes files, to this might be a django issue.

Original issue reported on code.google.com by pico...@googlemail.com on 25 Mar 2010 at 5:14

GoogleCodeExporter commented 9 years ago
That is... interesting. It looks like a problem with the database charset. Do 
you 
remember if you tested this before or after we moved to a new server?

Original comment by TheTerra...@gmail.com on 9 May 2010 at 2:37

GoogleCodeExporter commented 9 years ago
this was on my dev server some time ago 

Original comment by pico...@googlemail.com on 9 May 2010 at 4:06

GoogleCodeExporter commented 9 years ago
Definetly a chareset issue in db:

http://www.scenemusic.eu/demovibes/song/14140/

Specially crafted chineese character in the title.

Original comment by ara...@gmail.com on 9 May 2010 at 4:30