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