I've only just noticed this, but it seems the hash character (#) is not correctly escaped when setting an item value via URL? If I have a button that redirects to a page and sets the value of P1_ITEM to A#B, the URL ends with ...P1_ITEM:A#B, when it should be ...P1_ITEM:A%23B. The # is a reserved character for URLs. If I do the escaping myself and the item value is A%23B, the % character gets escaped and the URL is ...P1_ITEM:A%2523B. Most of the other reserved characters get percent-escaped. I've tried using ## or \#.
Created a demo here: https://apex.oracle.com/pls/apex/f?p=62159:1
One workaround would be to create a dynamic action that builds the properly escaped URL and redirect to that. It just seems odd. Am I missing a way to escape the #?