[Koha-bugs] [Bug 8872] Encoding issues; corresponding changes to showmarc

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Oct 21 17:30:34 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8872

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12755|0                           |1
        is obsolete|                            |
  Attachment #12756|0                           |1
        is obsolete|                            |
  Attachment #12757|0                           |1
        is obsolete|                            |
  Attachment #12758|0                           |1
        is obsolete|                            |
  Attachment #12759|0                           |1
        is obsolete|                            |

--- Comment #7 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 12986
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12986&action=edit
Bug 8872 Encoding issues in Templates.pm

Adds specific encoding parameter when creating Template object.
Note that the instruction binmode => ':utf8' could have been added also
to the process method. But since it outputs to a Perl variable, this is
not needed.
Finally, instead of the old encoding of all parameters before processing,
the output of process is encoded to UTF-8 octets. Note that Perl could
have handled this internally, but this would require adding a use open
statement, setting IO layers to UTF-8 in all scripts.

Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

Successfully tested on a record that displayed the UTF-8 "unknown
character" glyph before the patch, at least in plain MARC, and the
correct character after.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list