How to upload files that contain special characters/non english using curl in Powershell?
20:24 25 May 2026

I'm trying to upload a file that contain special characters & non-english letters using curl in Powershell but it's unable to read/open the file. Error gives this:

curl: (26) Failed to open/read local data from file/application

The command I used is this:

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $OutputEncoding = [System.Text.Encoding]::UTF8; curl.exe -F "sess_id=xxxxxx" -F "utype=prem" -F "to_folder=28890" -F "file_0=@C:\Users\Administrator\Desktop\OST\Complete\[2026.05.25] 学園アイドルマスター 初星学園 Remix Album「ReCollection」vol.1 [FLAC 48kHz/24bit].zip" "https://d300.userdrive.org/cgi-bin/upload.cgi?upload_type=file&utype=anon"

I tested this by renaming the file so the path does exist it just can't read special characters. Is there any fix for this?

windows powershell curl