diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index 6bf01097c69..a3ecb437c57 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -19,10 +19,10 @@
*/
/**
- \file htdocs/install/check.php
- \ingroup install
- \brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
- \version $Id$
+ * \file htdocs/install/check.php
+ * \ingroup install
+ * \brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
+ * \version $Id$
*/
include_once("./inc.php");
@@ -98,7 +98,7 @@ else
}
-// Check if GD installed
+// Check if GD supported
if (! function_exists("imagecreate"))
{
$langs->load("errors");
@@ -111,6 +111,19 @@ else
}
+// Check if UTF8 supported
+if (! function_exists("utf8_encode"))
+{
+ $langs->load("errors");
+ print '
'.$langs->trans("ErrorPHPDoesNotSupportUTF8")."
\n";
+ // $checksok=0; // If image ko, just warning. So check must still be 1 (otherwise no way to install)
+}
+else
+{
+ print '
'.$langs->trans("PHPSupportUTF8")."
\n";
+}
+
+
// Check memory
$memrequiredorig='16M';
$memrequired=16*1024*1024;
diff --git a/htdocs/langs/en_US/install.lang b/htdocs/langs/en_US/install.lang
index 046bb306465..2db451943d6 100644
--- a/htdocs/langs/en_US/install.lang
+++ b/htdocs/langs/en_US/install.lang
@@ -13,10 +13,13 @@ PHPSupportSessions=This PHP supports sessions.
PHPSupportPOSTGETOk=This PHP supports variables POST and GET.
PHPSupportPOSTGETKo=It's possible your PHP setup does not support variables POST and/or GET. Check your parameter variables_order in php.ini.
PHPSupportGD=This PHP support GD graphical functions.
+PHPSupportUTF8=This PHP support UTF8 functions.
PHPMemoryOK=Your PHP max session memory is set to %s. This should be enough.
PHPMemoryTooLow=Your PHP max session memory is set to %s bytes. This should be too low. Change your php.ini to set memory_limit parameter to at least %s bytes.
Recheck=Click here for a more significative test
ErrorPHPDoesNotSupportSessions=Your PHP installation does not support sessions. This feature is required to make Dolibarr working. Check your PHP setup.
+ErrorPHPDoesNotSupportGD=Your PHP installation does not support graphical function GD. No graph will be available.
+ErrorPHPDoesNotSupportUTF8=Your PHP installation does not support UTF8 functions. Dolibarr can't work correctly. Solve this before installing Dolibarr.
ErrorDirDoesNotExists=Directory %s does not exists.
ErrorGoBackAndCorrectParameters=Go backward and correct wrong parameters.
ErrorWrongValueForParameter=You may have typed a wrong value for parameter '%s'.
diff --git a/htdocs/langs/fr_FR/install.lang b/htdocs/langs/fr_FR/install.lang
index 1f6478685c8..9a7848173e3 100644
--- a/htdocs/langs/fr_FR/install.lang
+++ b/htdocs/langs/fr_FR/install.lang
@@ -13,11 +13,13 @@ PHPSupportSessions=Ce PHP supporte les sessions.
PHPSupportPOSTGETOk=Ce PHP supporte bien les variables POST et GET.
PHPSupportPOSTGETKo=Il est possible que ce PHP ne supporte pas les variables POST et/ou GET. Vérifier le paramètre variables_order du php.ini.
PHPSupportGD=Ce PHP supporte les fonctions graphiques GD.
+PHPSupportUTF8=Ce PHP supporte les fonctions UTF8.
PHPMemoryOK=Votre mémoire maximum de session PHP est défini à %s. Ceci devrait être suffisant.
PHPMemoryTooLow=Votre mémoire maximum de session PHP est défini à %s octets. Ceci est trop faible. Il est recommandé de modifier le paramètre memory_limit de votre fichier php.ini à au moins %s octets.
Recheck=Cliquez ici pour un test plus probant
ErrorPHPDoesNotSupportSessions=Votre installation PHP ne supporte pas les sessions. Cette fonctionnalité est requise pour faire fonctionner Dolibarr. Vérifiez votre configuration de PHP.
ErrorPHPDoesNotSupportGD=Ce PHP ne supporte pas les fonctions graphiques GD. Aucun graphique ne sera disponible.
+ErrorPHPDoesNotSupportUTF8=Ce PHP ne supporte pas les fonctions UTF8. Résolver le problème avant d'install Dolibarr car il ne pourra pas fonctionner correctement.
ErrorDirDoesNotExists=Le répertoire %s n'existe pas ou n'est pas accessible.
ErrorGoBackAndCorrectParameters=Revenez en arrière et corrigez les paramètres invalides.
ErrorWrongValueForParameter=Vous avez peut-être saisi une mauvaise valeur pour le paramètre '%s'.