Repository: flutter
Issue: Accent (non-ASCII) characters in iPhone’s device name prevent Dart VM Service from connecting
Labels: c: regression,platform-ios,waiting for customer response,has reproducible steps,P1,team-ios,triaged-ios,fyi-tool,found in release: 3.27,found in release: 3.28

### Steps to reproduce

1. On your iPhone, open **Settings > General > About**, and rename the device to include an accented (non-ASCII) character. For example:
   ```
   José's iPhone
   ```
2. Connect the device to your Mac (via USB or Wi-Fi) and attempt to debug a Flutter app:
   ```bash
   flutter run
   ```
3. Observe that the Dart VM Service fails to connect, or you see an error like **“The Dart VM Service was not discovered after 75 seconds...”**.

4. Rename the iPhone to remove accents (e.g. `Jose's iPhone`), and run/debug again. The issue disappears.

### Expected results

- Flutter should successfully connect to the Dart VM Service, regardless of whether the device name contains accented or non-ASCII characters.  
- The app should launch in debug mode, allowing breakpoints, hot reload, and normal debugging features.

### Actual results

- With an accented character in the iPhone’s device name, the Dart VM Service never connects, preventing debugging or hot reload.  
- Removing the accent from the device name immediately resolves the issue.


### Code sample

<details open><summary>Code sample</summary>

```dart
// A simple Flutter app for reproduction
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Accent Device Name Bug',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Accent Bug Demo'),
        ),
        body: const Center(
          child: Text('If device name has accents, Dart VM fails to connect.'),
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

_No response_

### Logs

<details open><summary>Logs</summary>

```console
% flutter run
No devices found yet. Checking for wireless devices...
Launching lib/main.dart on **Redacted for privacy** in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: **Redacted for privacy**
Running Xcode build...
 └─Compiling, linking and signing...                     5,2s
Xcode build done.                                       21,7s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
The Dart VM Service was not discovered after 75 seconds. This is taking much longer than expected...
Open the Xcode window the project is opened in to ensure the app is running. If the app is not running, try selecting "Product > Run" to fix the problem.

Click "Allow" to the prompt asking if you would like to find and connect devices on your local network. This is required for wireless debugging. If you selected "Don't Allow", you can turn it on in Settings > Your App Name > Local Network. If you don't see your app in the Settings, uninstall the app and rerun to see the prompt again.
Installing and launching...
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-x64, locale es-ES)
    • Flutter version 3.27.1 on channel stable at **Redacted for privacy**
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (10 days ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at **Redacted for privacy**
    ✗ cmdline-tools component is missing
      Run path/to/sdkmanager --install "cmdline-tools;latest"
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run flutter doctor --android-licenses to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/[Xcode.app/Contents/Developer](https://xcode.app/Contents/Developer)
    • Build 16C5032a
    • CocoaPods version 1.16.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] Connected device (1 available)
    • **Redacted for privacy** (mobile) • **Redacted for privacy** • ios • iOS 18.2 22C152

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.
```

</details>