1. Thierry Del Fiore
  2. PowerBuilder
  3. Wednesday, 30 March 2022 10:49 AM UTC

Hi,

PB2019R3

We're using the WebBrowser Control to display PDF in our app.

It works fine but it seems to be an issue when the PDF filename contains the # character

It seems that in Chrome the # is replaced by %23

 

is there a workaround to make it works in PB ? 

Best regards

 

Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 30 March 2022 12:00 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

Try to replace the "#" with %23 (Invoice%23P22010%20)... Does it works?

Anyway urls should always be encoded...

Andreas.

Comment
  1. Thierry Del Fiore
  2. Wednesday, 30 March 2022 13:53 PM UTC
Indeed, when i encode the # to %23, it works.

thanks

Didn't notice it at first try, since there was fileexist() function.

Anyway, i think it's a small issue in the webbrowser control since space are automaticaly encoded in %20 but not #
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 30 March 2022 14:10 PM UTC
It will not be automatically encoded. As far as I remember # has a special meaning in urls. That's why it isn't replaced.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.