From 724aeea3d831cb274a92caefb272947ca5976c99 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 16 Dec 2017 10:18:16 +0000 Subject: [PATCH] Turn on utf8 matching --- src/Illuminate/Routing/RouteCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/RouteCompiler.php b/src/Illuminate/Routing/RouteCompiler.php index 5fb1e30e3a35..c191663bc3db 100644 --- a/src/Illuminate/Routing/RouteCompiler.php +++ b/src/Illuminate/Routing/RouteCompiler.php @@ -36,7 +36,7 @@ public function compile() $uri = preg_replace('/\{(\w+?)\?\}/', '{$1}', $this->route->uri()); return ( - new SymfonyRoute($uri, $optionals, $this->route->wheres, [], $this->route->getDomain() ?: '') + new SymfonyRoute($uri, $optionals, $this->route->wheres, ['utf8' => true], $this->route->getDomain() ?: '') )->compile(); }