“If debugging is the process of removing bugs, then programming must be the process of putting them in.” – Edsger Dijkstra
This is the Bug Tracking System for the Flyspray project. This is not a demo! Before opening a new task, please read the guidelines!
Do not issue bugs reports against versions earlier than 0.9.9.5
Security problem? Check the security section.
FS#1208 - characters in french task descriptions incorrectly displayed after 0.9.8 to 0.9.9 update
Opened by Frédéric Jaume (soulfish) - Wednesday, 07 March 2007, 13:11 GMT+2
Last edited by Florian Schmitz (Floele) - Wednesday, 07 March 2007, 17:15 GMT+2
|
DetailsAfter upgrading a 0.9.8 version (which itself had been upgraded from previous versions too, 0.9.6 beeing the first one I think) to a 0.9.9 version, I get incorrectly displaying characters in all data read from the database, including comments, task names, task details, user names... I use french language, so all data in flyspray contains accentuated characters like é,à ,è ... as well as quotes (’) and doubles quotes (”). All accents are displayed incorrectly, and quotes, and doubles quotes appear preceeded with 2 antislahes “\”. Everything displayed fine in version 0.9.8, and no MySQL of PHP upgrades have been done to our web server. I have found the following solution after realizing that the DB had fields in the latin1 charset, but containing utf8 data: Treat each field containing potentially incorrect characters with this series of queries (this method has been used in Wordpress updates which had the same issues apparently):
ALTER TABLE flyspray_tasks MODIFY detailed_desc BLOB ; For the quotes and double quotes issues, I had to do this:
UPDATE flyspray_comments SET comment_text=REPLACE(comment_text, ‘\ After that, all data in my DB is ok, and displays fine in version 0.9.9. I posted about this problem in this thread: http://forum.flyspray.org/viewtopic.php?id=54 I’m joining the complete list of queries I used to get correctly displayed entries. I did not update text fields which contain dates, I guess it’s not useful. |
Wednesday, 07 March 2007, 17:15 GMT+2
Reason for closing: Not a bug
upgrade_flyspray_charset.sql
Thanks for the queries, we’ll keep them for reference (I’ll add it to the FAQ).
I also noticed that my full name, which includes accents is not displayer correctly right here on this Flyspray DB. ;)
Nope. Feel free to correct it. We got a bad database dump of the Flyspray database when migrating, so we have these problems here.
And btw, for the slashes issue (from old 0.9.9 sql script):
Extended script, includes cache.
the above sql script has some bugs.
you can also try the following PHP script, place it in you flsyrpay root directory but dont forget to take a database backup first
it was only tested with mysql 5, older versions may or may not work