Gio mount password with special characters

Hot to do gio mount if my password is @? I want mount using well-known way

gio mount smb://<user>:<password>@<server>/<share>/

For my case

gio mount 'smb://WORKGROUP;q:@@192.168.122.236/sambashare'

But it doesn’t work… I already asked here without success. This is how to reproduced. There are Ubuntu 25.10 on host and remote machine.

Instruction is based on Install and Configure Samba
On host

a@host:~$ 
IP=192.168.122.236 && user="q"
ssh-copy-id $user@$IP
ssh $user@$IP

On remote (samba server)

a@rem1:~$ 
sudo apt update && sudo apt install -y samba
mkdir -p "$HOME/sambashare/"
sudo service smbd restart
sudo ufw allow samba
pass='@' && echo -e "$pass\n$pass" | sudo smbpasswd -a -s $(id -un)
sudo --preserve-env=HOME sh -c 'cat <<EOF >> "/etc/samba/smb.conf"
[sambashare]
    comment = Samba on Ubuntu
    path = "$HOME/sambashare"
    read only = no
    browsable = yes
EOF'

Then on the host

a@host:~$ 
: ${IP:="192.168.122.236"}
: ${user:="q"}
cdBasePath="/run/user/1000/gvfs/smb-share:domain=WORKGROUP,server="$IP",share=sambashare,user=${user}/"
password_smb="@"
# Prepare and mount remote folder to filesystem
remoteBasePath="smb://WORKGROUP;${user}@$IP/sambashare"

	echo "Time to mount remote folder \""${remoteBasePath}"\" to my PC at \""${cdBasePath}"\""
	# Mount Server's folder to filesystem
	# wrong, why?
	# gio mount "$remoteBasePath"
	# gio mount 'smb://WORKGROUP;q:@@192.168.122.236/sambashare'
	# workaround
	echo "$password_smb" | gio mount "$remoteBasePath"

Have you tried URL encoding the password? @%40

It doesn’t work. Only after manually entering 1234 samba works…

$ gio mount "smb://WORKGROUP;q:%40@192.168.122.236/sambashare"
Authentication Required
Enter password for share “sambashare” on “192.168.122.236”:
Password: 

Upd. But, wait a moment, I am surprised. When password_smb is 1234 the same problem! Why?

$ gio mount "smb://WORKGROUP;q:1234@192.168.122.236/sambashare"
Authentication Required
Enter password for share “sambashare” on “192.168.122.236”:
Password:

After manually entering 1234 samba works…

The passwords in URIs are not supported for security reason.

can you provide link a a commit which introduced such behavior? As I see, passwords in URIs was supported some time ago…

I don’t think that gvfs ever support that. It was probably supported by gnomevfs, but that’s distant history…