diff --git a/.idea/MVC---Objet.iml b/.idea/MVC---Objet.iml
index 6ec0a77..143bc94 100644
--- a/.idea/MVC---Objet.iml
+++ b/.idea/MVC---Objet.iml
@@ -11,6 +11,7 @@
+
diff --git a/.idea/php.xml b/.idea/php.xml
index c3ead44..026b825 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -12,6 +12,7 @@
+
diff --git a/application/class/Bdd.php b/application/class/Bdd.php
index 4510b78..e65e1f7 100644
--- a/application/class/Bdd.php
+++ b/application/class/Bdd.php
@@ -11,12 +11,12 @@ class Bdd
switch($bdd) {
case 'bdd1':
$this->bdd = new PDO(DSN_BDD1, USER_BDD1, PASS_BDD1);
- break;
+ break;
case 'bdd2':
$this->bdd = new PDO(DSN_BDD2, USER_BDD2, PASS_BDD2);
- break;
+ break;
default:
- $this->bdd = new PDO(DSN_FICHES, USER_FICHES, PASS_FICHES);
+ $this->bdd = new PDO(DSN_BDD_DEFAULT, USER_BDD_DEFAULT, PASS_BDD_DEFAULT);
}
}
@@ -30,6 +30,9 @@ class Bdd
$tab = array();
foreach($res as $key => $row){
+ if (is_string($row)) {
+ $row = Caracter::normalise_ChaineDeCaracteresDownload($row);
+ }
$tab[$key] = $row;
}
return $tab;
diff --git a/application/class/Caracter.php b/application/class/Caracter.php
new file mode 100644
index 0000000..a170028
--- /dev/null
+++ b/application/class/Caracter.php
@@ -0,0 +1,80 @@
+