[Koha-patches] [PATCH] Correct bad encoding of fr-FR data loaded by web installer

Frederic Demians f.demians at tamil.fr
Sun Apr 13 20:23:53 CEST 2008


Some informations imported into MySQL DB by web installer
were wrongly encoded. It was the case for example with
opac_news table.
---
 .../data/mysql/fr-FR/1-Obligatoire/userflags.sql   |    2 ++
 .../mysql/fr-FR/2-Optionel/patron_categories.sql   |    1 +
 .../data/mysql/fr-FR/2-Optionel/sample_news.sql    |    1 +
 .../mysql/fr-FR/3-LecturePub/sample_itemtypes.sql  |    1 +
 .../fr-FR/4-Conservation/sample_itemtypes.sql      |    2 ++
 5 files changed, 7 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 installer/data/mysql/fr-FR/1-Obligatoire/userflags.sql
 mode change 100644 => 100755 installer/data/mysql/fr-FR/2-Optionel/patron_categories.sql
 mode change 100644 => 100755 installer/data/mysql/fr-FR/3-LecturePub/sample_itemtypes.sql
 mode change 100644 => 100755 installer/data/mysql/fr-FR/4-Conservation/sample_itemtypes.sql

diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/userflags.sql b/installer/data/mysql/fr-FR/1-Obligatoire/userflags.sql
old mode 100644
new mode 100755
index b1b3124..2cd644f
--- a/installer/data/mysql/fr-FR/1-Obligatoire/userflags.sql
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/userflags.sql
@@ -1,3 +1,5 @@
+SET NAMES utf8;
+
 INSERT INTO `userflags` VALUES(0,'superlibrarian','Accès à toutes les fonctions bibliothécaires, sans limite',0);
 INSERT INTO `userflags` VALUES(1,'circulate','Circulation',0);
 INSERT INTO `userflags` VALUES(2,'catalogue','Consultation du catalogue (interface professionnelle)',0);
diff --git a/installer/data/mysql/fr-FR/2-Optionel/patron_categories.sql b/installer/data/mysql/fr-FR/2-Optionel/patron_categories.sql
old mode 100644
new mode 100755
index 3cc92a8..22ddcd9
--- a/installer/data/mysql/fr-FR/2-Optionel/patron_categories.sql
+++ b/installer/data/mysql/fr-FR/2-Optionel/patron_categories.sql
@@ -1,3 +1,4 @@
+SET NAMES utf8;
 INSERT INTO `categories` (`categorycode`, `description`, `enrolmentperiod`, `upperagelimit`, `dateofbirthrequired`, `finetype`, `bulk`, `enrolmentfee`, `overduenoticerequired`, `issuelimit`, `reservefee`, `category_type`) VALUES 
 ('ADULT','Adulte',99,999,18,NULL,NULL,'0.000000',1,NULL,'0.000000','A'),
 ('ETUD','Etudiant',99,999,18,NULL,NULL,'0.000000',1,NULL,'0.000000','A'),
diff --git a/installer/data/mysql/fr-FR/2-Optionel/sample_news.sql b/installer/data/mysql/fr-FR/2-Optionel/sample_news.sql
index 98bcb0a..2be6788 100755
--- a/installer/data/mysql/fr-FR/2-Optionel/sample_news.sql
+++ b/installer/data/mysql/fr-FR/2-Optionel/sample_news.sql
@@ -1 +1,2 @@
+SET NAMES utf8;
 INSERT INTO `opac_news` VALUES (1,'Bienvenue dans Koha !','Bienvenue dans Koha 3, la toute nouvelle version du système intégré de gestion de bibliothèque (SIGB) open source de référence. Développé initialement en Nouvelle Zélande et déployé pour la première fois en janvier 2000, Koha est un projet international soutenu par des sociétés de services en logiciels libres et par des bibliothécaires du monde entier.','koha','2008-01-14 03:25:58','2099-01-10',1),(2,'Et maintenant ?','Félicitations ! vous avez désormais une version opérationnelle de Koha. Et maintenant, que faire ?\r\n<ul>\r\n<li><a href=\"http://kohadocs.org\">lisez la documentation de Koha ;</a></li>\r\n<li><a href=\"http://wiki.koha.org\">lisez et participez au Wiki de Koha ;</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">abonnez-vous aux listes de discussion ;</a></li>\r\n<li><a href=\"http://bugs.koha.org\">signalez des bugs ;</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">proposez des correctifs et des  améliorations ;</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">discutez avec les utilisateurs et les développeurs de Koha.</a></li>\r\n</ul>\r\n','koha','2008-01-14 03:34:45','2099-01-10',2);
diff --git a/installer/data/mysql/fr-FR/3-LecturePub/sample_itemtypes.sql b/installer/data/mysql/fr-FR/3-LecturePub/sample_itemtypes.sql
old mode 100644
new mode 100755
index 2843766..cb23812
--- a/installer/data/mysql/fr-FR/3-LecturePub/sample_itemtypes.sql
+++ b/installer/data/mysql/fr-FR/3-LecturePub/sample_itemtypes.sql
@@ -2,6 +2,7 @@
 -- 
 -- Contenu de la table `itemtypes`
 -- 
+SET NAMES utf8;
 
 INSERT INTO `itemtypes` (`itemtype`, `description`, `renewalsallowed`, `rentalcharge`, `notforloan`, `imageurl`, `summary`) VALUES ('LIVR', ' Livre', 1, 0.0000, 0, 'Fiction.gif', '');
 INSERT INTO `itemtypes` (`itemtype`, `description`, `renewalsallowed`, `rentalcharge`, `notforloan`, `imageurl`, `summary`) VALUES ('BD', 'BD', 1, 0.0000, 0, 'MZ.gif', '');
diff --git a/installer/data/mysql/fr-FR/4-Conservation/sample_itemtypes.sql b/installer/data/mysql/fr-FR/4-Conservation/sample_itemtypes.sql
old mode 100644
new mode 100755
index 368d904..30428e2
--- a/installer/data/mysql/fr-FR/4-Conservation/sample_itemtypes.sql
+++ b/installer/data/mysql/fr-FR/4-Conservation/sample_itemtypes.sql
@@ -2,6 +2,8 @@
 -- Contenu de la table `itemtypes`
 -- 
 
+SET NAMES utf8;
+
 INSERT INTO `itemtypes` (`itemtype`, `description`, `renewalsallowed`, `rentalcharge`, `notforloan`, `imageurl`, `summary`) VALUES ('ARTI', 'Article', 0, 0.0000, 0, 'Pamphlet.gif', '');
 INSERT INTO `itemtypes` (`itemtype`, `description`, `renewalsallowed`, `rentalcharge`, `notforloan`, `imageurl`, `summary`) VALUES ('MEM', 'Mémoire', 0, 0.0000, 0, 'Faculty Course Materials.gif', '');
 INSERT INTO `itemtypes` (`itemtype`, `description`, `renewalsallowed`, `rentalcharge`, `notforloan`, `imageurl`, `summary`) VALUES ('MICR', 'Microfiche', 0, 0.0000, 0, 'Microfiche.gif', '');
-- 
1.5.3.7




More information about the Koha-patches mailing list