Sorry but it's still about the accents ...
Accents in file or directory names are not supported by the WebGadget. Is this normal?
OpenWindow(0, 10, 10, 1200, 500, "Essai", #PB_Window_SystemMenu)
cat1$ = "Reaction" : cat2$ = "Réaction"
t1$ = "e.html" : t2$ = "é.html"
gRacine$ = "/PureBasic/"
Debug FileSize(gRacine$ + cat1$ + #PS$ + t1$) ; ok
WebGadget(0, 0, 0, 400, 500, "file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat1$ + #PS$ + t1$) ; ok
Debug FileSize(gRacine$ + cat2$ + #PS$ + t1$) ; ok
WebGadget(1, 401, 0, 400, 500, "file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat2$ + #PS$ + t1$) ; !!!
Debug FileSize(gRacine$ + cat1$ + #PS$ + t2$) ; ok
WebGadget(2, 801, 0, 400, 500, "file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat1$ + #PS$ + t2$) ; !!!
Repeat
evt = WaitWindowEvent()
Until evt = #PB_Event_CloseWindow
WebGadget and accents
WebGadget and accents
Sorry for my poor english
j@cques
j@cques
Re: WebGadget and accents
What if you build the string with UrlEncoder() ?
Code: Select all
OpenWindow(0, 10, 10, 1200, 500, "Essai", #PB_Window_SystemMenu)
cat1$ = "Reaction" : cat2$ = "Réaction"
t1$ = "e.html" : t2$ = "é.html"
gRacine$ = "/PureBasic/"
Debug FileSize(gRacine$ + cat1$ + #PS$ + t1$) ; ok
WebGadget(0, 0, 0, 400, 500, URLEncoder("file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat1$ + #PS$ + t1$)) ; ok
Debug FileSize(gRacine$ + cat2$ + #PS$ + t1$) ; ok
WebGadget(1, 401, 0, 400, 500, URLEncoder("file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat2$ + #PS$ + t1$)) ; !!!
Debug FileSize(gRacine$ + cat1$ + #PS$ + t2$) ; ok
WebGadget(2, 801, 0, 400, 500, URLEncoder("file:" + #PS$ + #PS$ + "Dur" + gRacine$ + cat1$ + #PS$ + t2$)) ; !!!
Repeat
evt = WaitWindowEvent()
Until evt = #PB_Event_CloseWindow
Re: WebGadget and accents
Thank you Bisonte.
It's better ! With UrlEncoder, WebGadget # 1 (repertory name with accent) works fine.
WebGadget # 2 (file name with accent) still does not display ...
It's better ! With UrlEncoder, WebGadget # 1 (repertory name with accent) works fine.
WebGadget # 2 (file name with accent) still does not display ...
Sorry for my poor english
j@cques
j@cques
Re: WebGadget and accents
Oups ! It's also ok with WebGadget #2.
Thanks Bisonte.
Thanks Bisonte.
Sorry for my poor english
j@cques
j@cques