[Bug 10068] New: Move from the utf8:: pragma methods to Encode::
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Bug ID: 10068 Summary: Move from the utf8:: pragma methods to Encode:: Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: gmcharlt@gmail.com Reporter: tomascohen@gmail.com As stated by Larry Wall [1] we should not be using the loose (UTF-8 implementation) utf8::encode utf8::decode methods, and using Encode::encode and Encode::decode (respectively) instead, which are stricter. At first sight this might have important consequences (breakage for people having bad data). I belive it won't: we currently have reports on the lists of people having trouble with wide characters and bad encodings on the lists. (I think) several libs, we rely on, use UTF-8 instead of utf8. And we are not catching encoding problems properly because of the mixture. To+ [1] http://perldoc.perl.org/Encode.html#UTF-8-vs.-utf8-vs.-UTF8 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #1 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17501 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17501&action=edit Bug 10068 - Replace the utf8 pragma at acqui/booksellers.pl utf8::decode($string) for Encode::decode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #2 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17502 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17502&action=edit Bug 10068 - Replace the utf8 pragma at C4/Output.pm utf8::encode($string) for Encode::encode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17503 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17503&action=edit Bug 10068 - Replace the utf8 pragma at admin/preferences.pl utf8::decode($string) for Encode::decode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #4 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17504 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17504&action=edit Bug 10068 - Replace the utf8 pragma at C4/Biblio.pm utf8::decode($string) for Encode::decode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #5 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17505 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17505&action=edit Bug 10068 - Replace the utf8 pragma at acqui/histsearch.pl utf8::decode($string) for Encode::decode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #6 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17506 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17506&action=edit Bug 10068 - Replace the utf8 pragma at C4/Installer.pm utf8::encode($string) for Encode::encode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 --- Comment #7 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 17507 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17507&action=edit Bug 10068 - Replace the utf8 pragma at C4/Search.pm utf8::decode($string) for Encode::decode('UTF-8',$string) Added Carp and error handling. Sponsored-by: Universidad Nacional de Córdoba -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17501|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17502|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|tomascohen@gmail.com |gmcharlt@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=6554 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10068 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #8 from Tomás Cohen Arazi <tomascohen@gmail.com> --- *** This bug has been marked as a duplicate of bug 11944 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org