Closed jywarren closed 10 years ago
That threw: incompatible character encodings: UTF-8 and ASCII-8BIT
oh well... i'll have to actually read the discussion i linked to... but not on friday night!
This is still unresolved, but I suspect it was related to the use of accent characters, for some reason, perhaps posted from a spanish language computer with non-UTF-8 encoding? I was finally able to get the note to show by removing all accented characters (using "Transliterate selection to ASCII" in TextMate). I'll try to re-add them in the edit form now, but closing as we haven't seen this on any other post.
Strangely, I can add accents on other posts. Maybe somehow the record itself has encoding stored... i wonder if we can change that at all, or force an encoding on save...
That's weird. Most things in mysql seem to be table specific, so if one note entry in the table supports utf8, all note entries in the same table should support it. On Apr 29, 2014 11:28 AM, "Jeffrey Warren" notifications@github.com wrote:
Strangely, I can add accents on other posts. Maybe somehow the record itself has encoding stored... i wonder if we can change that at all, or force an encoding on save...
— Reply to this email directly or view it on GitHubhttps://github.com/jywarren/plots2/issues/196#issuecomment-41691106 .
http://publiclab.org/notes/eblaine/4-13-2013/kite-mapping-central-america-waste-and-recycling
yields:
In-depth discussion of the issue here: http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/ which i haven't read thoroughly
I'm inserting:
.force_encoding("UTF-8")
and testing now.