Educated Quotes and long dashes truncate description fields

It seems that in zenphoto 1.2.1 putting an educated single quote (pasted from MS Word) or a long dash (typed Option+Minus on Mac) in the description field of an image or album causes that field's text to be truncated at that character when save is pushed.

This is the case both from the admin page and the inline editor that appears on the actual page when you are logged in. Is this a known issue? I don't think it was happening in version 1.1.x.

My encoding settings are thus:

Zenphoto: Unicode UTF-8

in phpmyadmin:

MySQL charset: UTF-8 Unicode (utf8)

MySQL connection collation: utf8_general_ci

I tried setting zenphoto to UTF-7, which worked and did not truncate new entries, but old entries and some other things were all messed up.

Thanks!

Comments

  • setting clean_ms_char in the code as in
    http://www.zenphoto.org/trac/changeset/2276
    to 0 allows it to include these characters, but a bunch of errors render on the final page. So basically it seems it is stipping these characters correctly, but also killing everything that follows them.
  • Did you apply just that change or did you load the whole build?
  • that change was already applied in 1.2.1 official (ie it was already 2), i just tried setting it to 1 or 0 to see if it would fix the problem, but to no particular avail. So i set it back to 2.
  • No, the fixes for character sets are in the current nightly builds, not in the 1.2.1 official. You should load the nightly build.
  • oops, all I was aware of was that my `clean_ms_char` was set to 2, nothing more!
    :)

    OK - maybe I'll give it a shot later. thanks!
Sign In or Register to comment.