From 6f84a77413612e32cf3e2751fc8b45abb5288b3b Mon Sep 17 00:00:00 2001
From: RealET <real3t@gmail.com>
Date: Sat, 16 Oct 2021 21:35:55 +0200
Subject: [PATCH] =?UTF-8?q?Un=20peu=20de=20prudence=20au=20cas=20o=C3=B9?=
 =?UTF-8?q?=20sur=20les=20langues=20en=20UTF8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 inclure/entravaux.html       | 2 +-
 noisettes/header/header.html | 2 +-
 soyezcreateurs_fonctions.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/inclure/entravaux.html b/inclure/entravaux.html
index a53a989c..ec930324 100644
--- a/inclure/entravaux.html
+++ b/inclure/entravaux.html
@@ -12,7 +12,7 @@
 <meta property="og:url" content="[(#SELF|url_absolue)]" />
 <meta property="og:site_name" content="[(#NOM_SITE_SPIP|textebrut)]" />
 [<meta property="og:description" content="(#DESCRIPTIF_SITE_SPIP|supprimer_tags|attribut_html)" />]
-<meta property="og:locale" content="[(#LANG|strtolower)]_[(#LANG|strtoupper)]" />
+<meta property="og:locale" content="[(#LANG|mb_strtolower)]_[(#LANG|mb_strtoupper)]" />
 [(#SET{logoreseauxsociaux,[(#LOGO_RUBRIQUE_NORMAL|sinon{#CHEMIN{images/nature-2683474_1920.jpg}}|image_focus{600,600}|extraire_attribut{src}|url_absolue)]})]
 [<meta property="og:image" content="(#GET{logoreseauxsociaux,#CHEMIN{images/1.gif}})" />]
 
diff --git a/noisettes/header/header.html b/noisettes/header/header.html
index 7e4ceb6e..a1ce3c4a 100644
--- a/noisettes/header/header.html
+++ b/noisettes/header/header.html
@@ -86,7 +86,7 @@ CancelMonitorTextSize = false;
 [<meta property="og:image" content="(#GET{logoreseauxsociaux,#CHEMIN{images/1.gif}})" />]
 <meta property="og:site_name" content="[(#NOM_SITE_SPIP|textebrut)]" />
 [<meta property="og:description" content="(#ENV{metadescription,[(#DESCRIPTIF_SITE_SPIP|supprimer_tags|attribut_html)]}|couper{150})" />]
-<meta property="og:locale" content="[(#LANG|strtolower)]_[(#LANG|strtoupper)]" />
+<meta property="og:locale" content="[(#LANG|mb_strtolower)]_[(#LANG|mb_strtoupper)]" />
 [(#REM) Twitter card]
 <meta property="twitter:card" content="summary_large_image" />
 <meta property="twitter:url" content="[(#SELF|url_absolue)]" />
diff --git a/soyezcreateurs_fonctions.php b/soyezcreateurs_fonctions.php
index f6bcd198..6cc23610 100644
--- a/soyezcreateurs_fonctions.php
+++ b/soyezcreateurs_fonctions.php
@@ -136,7 +136,7 @@ function sc_nettoyer_marqueur($texte) {
 	$texte = preg_replace("#Â #", "_", $texte); 
 	$texte = preg_replace("#\s#", "_", $texte);
 	$texte = preg_replace("#_+#", "_", $texte);
-	return strtolower($texte);
+	return mb_strtolower($texte);
 }
 
 /* à appliquer au #TEXTE de forum */
-- 
GitLab