Open
Description
I use sidecar in v2 project to spawn yt-dlp
from Rust with
let mut (rx, _) = app_handle.shell().sidecar(...);
spawn(async move {
while let Some(event) = rx.recv().await {
if let CommandEvent::Stdout(line: Vec<u8>) = event { ... } // line missing characters
}
});
Example sentence:
[download] Destination: PEDRO - Jaxomy, Agatino Romero, Raffaella Carrà (TikTok Song) [XzilCu9PcZk].f616.mp4
Notice the special character in Carrà
the à
will be missing in the lines.
tauri info
[✔] Environment
- OS: Windows 10.0.22631 X64
✔ WebView2: 125.0.2535.92
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
✔ cargo: 1.77.1 (e52e36006 2024-03-26)
✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 20.12.0
- npm: 10.5.0
- bun: 1.1.10
[-] Packages
- tauri [RUST]: 2.0.0-beta.22
- tauri-build [RUST]: 2.0.0-beta.17
- wry [RUST]: 0.40.1
- tao [RUST]: 0.28.1
- @tauri-apps/api [NPM]: 2.0.0-beta.13
- @tauri-apps/cli [NPM]: 2.0.0-beta.20
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite