Uniko Sistemi srl Active Member Licensed User Jan 18, 2023 #1 good morning everyone i have an app that shows pdf files in a list and if clicked they are opened. I use webview and I have a problem. I wrote everything in b4x, with android it works regularly, while with ios it works only if the name of the pdf I want to open does NOT contain spaces, but if the name has even just one space it is not opened and it doesn't even report an error. example : Offerta1.pdf will open Offerta 1.pdf will not open has this ever happened to anyone? thank you
good morning everyone i have an app that shows pdf files in a list and if clicked they are opened. I use webview and I have a problem. I wrote everything in b4x, with android it works regularly, while with ios it works only if the name of the pdf I want to open does NOT contain spaces, but if the name has even just one space it is not opened and it doesn't even report an error. example : Offerta1.pdf will open Offerta 1.pdf will not open has this ever happened to anyone? thank you
Solution aeric Jan 18, 2023 Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8")
Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8")
aeric Expert Licensed User Longtime User Jan 18, 2023 #2 Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8") Upvote 1 Solution
Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8")
Uniko Sistemi srl Active Member Licensed User Jan 18, 2023 #3 aeric said: Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8") Click to expand... perfect! works great! thank you Upvote 0
aeric said: Try use: B4X: Dim su As StringUtils Dim FileName As String = "Offerta 1.pdf" FileName = su.EncodeUrl(FileName, "UTF8") Click to expand... perfect! works great! thank you