Android Question mediaplayerstream.load can't send get char ascii 128 %80 (€) .. 255 %FF () to server

boon2

Member
Licensed User
Longtime User
1. my server name is non english
2. my folder name is non english
3. my filename is non english

mediaplayerstream.load("http://aa.com/%A1.MP3")

if i can send charactor over %80(128) i can load and play all file
thanks
 
Last edited:

boon2

Member
Licensed User
Longtime User
⌂.mp3 can play ( ⌂ is 127 in ascii table)

when filename is €.mp3 (€ is 128 in ascii tablet) can't play

mean mediaplayerstream.load not send charactor ascii number over 127

please check
 
Upvote 0

boon2

Member
Licensed User
Longtime User
no problem
mediaplayerstream.load("http://127.0.0.1/mp3?filename=⌂") can send get ⌂ to server
mediaplayerstream.load("http://127.0.0.1/mp3?filename=%7F") can send get %7F to server

but

problem is charactor begin € or %80 can not send by get method to server

mediaplayerstream.load("http://127.0.0.1/mp3?filename=€") can't send get € to server
mediaplayerstream.load("http://127.0.0.1/mp3?filename=%80") can't send get %80 to server

charactor ascii 0-127 no problem (i test %00 - %7F no problem)
charactor ascii 128-255 had problem(i test %80 - %7F had problem)
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
try
B4X:
Dim su As StringUtils
mediaplayerstream.load(su.EncodeUrl("http://127.0.0.1/mp3?filename=⌂","utf8"))
 
Upvote 0

boon2

Member
Licensed User
Longtime User
⌂ (ascii 127) can send by get method
but start char
€ (ascii 128) can't send by get method

it's bug of sign byte and unsigned byte or use word(2byte) for get method in mediaplayerstream.load
 
Upvote 0
Top