diff --git a/React/DevSupport/RCTInspectorDevServerHelper.mm b/React/DevSupport/RCTInspectorDevServerHelper.mm index f0033a6a9..54429bf39 100644 --- a/React/DevSupport/RCTInspectorDevServerHelper.mm +++ b/React/DevSupport/RCTInspectorDevServerHelper.mm @@ -30,9 +30,10 @@ static NSString *getDebugServerHost(NSURL *bundleURL) static NSURL *getInspectorDeviceUrl(NSURL *bundleURL) { + NSString *escapedText = [[[UIDevice currentDevice] name] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; return [NSURL URLWithString:[NSString stringWithFormat:@"http://%@/inspector/device?name=%@", getDebugServerHost(bundleURL), - [[UIDevice currentDevice] name]]]; + escapedText]]; }