diff --git a/src/Rcm/EventListener/RouteListener.php b/src/Rcm/EventListener/RouteListener.php
index <HASH>..<HASH> 100644
--- a/src/Rcm/EventListener/RouteListener.php
+++ b/src/Rcm/EventListener/RouteListener.php
@@ -183,10 +183,22 @@ class RouteListener
     public function addLocale()
     {
         $locale = $this->currentSite->getLocale();
-        setlocale(
+
+        /* Conversion for Ubuntu and Mac local settings. */
+        if (!setlocale(
             LC_ALL,
-            $locale
-        );
+            $locale.'.utf8'
+        )) {
+            if (!setlocale(
+                LC_ALL,
+                $locale.'.UTF-8'
+            )) {
+                throw new \RuntimeException(
+                    "Unable to set local : ".$locale
+                );
+            }
+        }
+
         \Locale::setDefault($locale);
 
         return null;
Fix for setting locale to utf8