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
Created attachment 17501 [details] [review] 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
Created attachment 17502 [details] [review] 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
Created attachment 17503 [details] [review] 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
Created attachment 17504 [details] [review] 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
Created attachment 17505 [details] [review] 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
Created attachment 17506 [details] [review] 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
Created attachment 17507 [details] [review] 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
*** This bug has been marked as a duplicate of bug 11944 ***