Bug #1030
comment's username stored w/ bad encoding
| Status : | Closed | Start : | ||
| Priority : | Urgent | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | release2 | |||
| Resolution : | fixed |
Description
In the SVN version, when you send a comment, your name will be learned (not checked, but I guess you store it in cookies). It's perfect, 'till you don't use accented characters. For example, I'm András Bártházi, and after sending a comment, and coming back, I got Andr**s B**rth**zi. It seems to me, that my name was stored as UTF-8 (ok), but retreived as ISO-8859-2 (bad).
Associated revisions
Revision a0fb1610b3e6a57e1782818bad29ac27fe4fca52
Ditch comment counters. Closes #1030.
git-svn-id: http://svn.typosphere.org/typo/trunk@1176 820eb932-12ee-0310-9ca8-eeb645f39767
History
10/27/2005 04:50 PM - Redmine Admin
András, you should check if your webserver is using UTF-8. #68 reports a similar problem and the solution was changing the ISO encoding to UTF-8.
01/11/2006 03:56 AM - potian -
I always use UTF8,and test three oss(MacOS, Linux, windows),three browsers(firefox,IE,safari), this problem always be there.Finally, I change the last line of function getCookie() in cookies.js.
change:
return unecsape(...).split("+").join(" ");
to
return unecsape(decodeURI(...)).split("+").join(" ");
I have test András Bártházi(single-byte) and chinese ??(double-bytes).
