Issue with Download and Loss of Non-ASCII Characters
I have a need to allow my user to download the contents of an HTML Region as a file. This region contains some Greek letters, i.e. non-ASCII, used with some common finance formulas.
I am able to copy the contents off this region using JavaScript without any issue.
Moreover, I can copy the contents from JavaScript into a Page Item and then render the region with PL/SQL. Again, this works without an issue.
However, when I try to download the region, the Greek letters are lost in the downloaded document. Instead they are replaced with this weird series of characters: (Δ
I've created a sample app to demonstrate this problem at apex.oracle.com:
URL: http://apex.oracle.com/pls/apex/f?p=34765:1
UID: GUEST_DEV
PWD: greeksgone
Click the button labeled "Copy HTML Via JS" and you will see the statically populated region copied into the second region.
Click the button labeled "Copy HTML Via APEX" and you will see the statically populated region copied into the third region. This is achieved by copying the HTML into a Page Item and then submitting the page. When the page returns, the value of this Page Item is then used to populate the third region. As you can see, the Greek letters are there as normal.
However, if you click the "Download HTML" button you will see the the Greek letters are not present in the resulting file.
-Joe