i'm trying to open a local html file, using this code:
if acet1.text is in english , the browser will open normally.
but if acet1.text is in arabic , the browser will not even open.
locale of the device is english UK
i also used this code :
so how to let it encode the arabic text to browse the file
B4X:
Dim fn, fnu As String
fn = dirname & "w_" & acet1.Text.Replace(" ","_") & DateTime.Date(DateTime.Now) & "/" & "report_for_browser.html"
fnu = File.GetUri(File.DirApp, fn)
fx.ShowExternalDocument(fnu)
if acet1.text is in english , the browser will open normally.
but if acet1.text is in arabic , the browser will not even open.
locale of the device is english UK
i also used this code :
B4X:
Dim fn, fnu , ur As String
Dim su As StringUtils
ur = su.EncodeUrl(acet1.Text.Replace(" ","_") , "UTF8")
fn = dirname & "w_" & ur & DateTime.Date(DateTime.Now) & "/" & "report_for_browser.html"
fnu = File.GetUri(File.DirApp, fn)
fx.ShowExternalDocument(fnu)
so how to let it encode the arabic text to browse the file
Last edited: