Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with Download and Loss of Non-ASCII Characters

Joseph UpshawAug 29 2012 — edited Aug 30 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2012
Added on Aug 29 2012
17 comments
421 views