diff --git a/src/ZombieDriver.php b/src/ZombieDriver.php index 4fe7440..0b7af40 100644 --- a/src/ZombieDriver.php +++ b/src/ZombieDriver.php @@ -115,6 +115,11 @@ public function visit($url) // Cleanup cached references $this->nativeRefs = array(); + // Urlencode non-ascii characters + $url = preg_replace_callback('/[^\x20-\x7f]/', function($match) { + return urlencode($match[0]); + }, $url); + $js = <<