Problem of charset with Filedownload in APEX

My problem is, that iam trying to export a file with the ISO-8859-1 character set and I still get UTF8.
The Proecure works like this:

##############################
v_filename: = p_filename | ".csv".

-set the MIME type of the HTTP header
OWA_UTIL.mime_header (' text/plain', FALSE, ' ISO-8859-1' ");

-Place the name of the file
HTP.p ('Content-Disposition: attachment; filename = "" | ") v_filename | '"');

-close the HTTP header
OWA_UTIL.http_header_close;

HTP. PRN ('test');
##############################

The file I receive is always utf8.

If I export with apex unload to drop I'm going get the correct ISO-8859-1.
Y at - it tips or tricks?

Hello
in your example, you're out a simple string, you must store this string in a CLOB first, then you must convert explicitly the "document" that you want to download in ISO-8859-1 by calling [DBMS_LOB. CONVERTTOBLOB | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_lob.htm#i1020355] (see the required parameters and the value of CSID for ISO 8859 - 1) and then call the WPG_DOCLOAD. DOWNLOAD_FILE procedure.

As AL32UTF8 probably has your character set of database, you must perform the explicit conversion.

I hope that I have not forgotten anything else...

Bye,.
Flavio

-----
[http://www.oraclequirks.com]

Tags: Database

Similar Questions

  • problems in the deployment of the apex for tomcat listener

    Hello

    I'm looking for a set of (almost infallible) instructions for installation of the auditor of the apex to tomcat.

    So far I managed to deploy the listener and tomcat told me that the listener is configured.

    I realize I have to copy the images to the directory of tomcat (I cancelled trying to get going again).


    Then the images go in tomcat/root/i

    I suppose we rename the directory images on i. so what was the root/tomcat/images become i/root/tomcat

    I see that the apex war has been deployed.

    Where's the apex_config.xml?
    are we supposed to run the sample_capture.sql script?

    When I launch http://localhost: 8080/apex/ListenerConfigure I get message now:

    "The listener of the APEX is already configured. Please log on as an administrator to access the listener Administration APEX. »

    When I launch http://localhost: 8080/apex/ListenerAdmin I am invited for the user name and password.

    If I put in apexAdmin as username and admin as the password, the values are not accepted.
    Finally (3rd attempt) I get "this request requires HTTP authentication.

    There is a similar problem with ApexStatus.

    Finally if I type http://localhost: 8080/apex/I get required url http://localhost: 8080/apex / is not allowed.


    Is there a step by step guide to install listener apex under tomcat?

    I just posted a new version. That should solve the problem. In tomcat http://localhost/apex/ had a problem where if you don't http://localhost/apex/apex it would work. Basically, the default page worked in tomcat.
    -kris

  • Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"in any way I can remove my visa card from iTunes

    Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"anyway I can remove my visa card from iTunes?

    You must pay your debt first.

  • the site theme is problem with firefox, but not any problem of chrome with!

    the site theme is problem with firefox, but not any problem of chrome with!
    for ex: http://haftegy.ir
    How to fix?

    Wow sorry! IM update firefox to the latest version and my problem is solved.
    Thank you very much.

  • I can not access to sites such as Youtube or truckcam.tv it seems that the problem may be with the most recent Adobe flash and firefox as browsers further

    Question
    I can't access to sites such as Youtube or truckcam.tv , seems, the problem may be with the last Adobe flash and firefox as other browsers work I reinstalled both, but without success, even on the two desktop using Vista and laptop on Windows 7

    See:

  • Have problems and questions with Time Capsule were addressed in any significant way. Reluctant to buy according to your comments.

    Have problems and questions with Time Capsule was dealt with in a meaningful way? Reluctant to buy according to your comments.

    Apple did not have any material changes to the time Capsule to nearly 3 years. The only change that has occurred in the last 18 months or so is a firmware update to address security issues.

  • I have problems to make my battery charged, because the cable does not have a link solid with the socket of the phone.  The problem seems compatible with a lot of cables, so I think the problem is with the phone. Can it be fixed?

    I have problems to make my battery charged, because the cable does not have a link solid with the socket of the phone.  The problem seems compatible with a lot of cables, so I think the problem is with the phone. Can it be fixed?

    Probably there is debris and dust in the decision-making of the lightning.  Serve with compressed gas canned (NEVER orally).  If this doesn't help, try electronic contact cleaner has a q - Tip.  Finally, take it to Apple.

  • Problems of wireless with my Satellite A505

    Hello people,

    I have a Satellite A505 which uses a Realtek RTL8191SE wireless network card. Recently, I had connectivity problems with my home router. This configuration used to work perfectly, but recently, I had a problem where I won't be able to connect to my router wireless access point. Reset the adapter does not solve the problem, or don't restart.

    I found that my router reboot solves the problem, I am able to login after the reboot of the router. I have not had this problem on any of the other devices or laptops in my house and never had this problem until last month. I tried to do a factory reset on my router in order to ensure that some recent changes in our setup of the router were not to blame, but the problem persists even with a clean slate.

    Ideas for what to do?

    Thank you!

    Hello

    >... and never had this problem until the last month or more
    Do you use WLAN driver from Toshiba support page?
    I ask this question because I noticed that under Win7 driver for this wireless network card is offered as optional update. Maybe this update is installed, and now you have this problem.
    If possible, try to roll back OS a few weeks back and check if the problem persists.

  • Problems of lag with Safari/Youtube

    Hey guys, I had this problem for a while:

    When I close the Youtube tab (normally with a video) to get to the next tab, tab Youtube sometimes freezes for a few seconds before closing completely.

    Then Safari starts getting lag, "restless" and slow, even when I'm on Facebook or other websites in general. I noticed that my Mac starts to slow down too.

    The only way I have temporarily resolve this problem is to remove the story and the datas of Safari and start over. Or what Mac is becoming seriously lag is to restart (it happened seldom).

    This problem has occurred before the update to OS X El Capitan 10.11.3 (I thought that it improved...)

    Clues or suggestions on what to do?

    • I have never installed readers flash, adobe etc...
    • I don't have a plugins, web extensions installed.
    • I décliqués Plugin Internet on Safari, thought preference that he touched it...
    • This Youtube problem never happens with Chrome
    • I have a Macbook Pro OS X El Capitan 10.11.3, retina

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

  • Problem connecting wireless with my Tecra A8

    Hello

    I have problem connecting WiFi with my laptop Tecra A8. When I opened my laptop, it does not connect to the wireless network.
    I tried several ways to solve this problem.
    I updated for active connections, then I click on the Connect button after you select my wireless LAN, but it doesn't connect.
    Or I restart my computer, but it doesn't connect.
    However, it connects to the network wireless in anytime after about 15 minutes.

    Also when I tried to connect to the network wireless at home, but I couldn't t connect. I removed the password for the connection. Then I connected without any problem.
    I wonder that there is no problem with installation? Or my wireless card doesn't work?
    Can someone help me?

    Thank you

    > Also when I tried to connect to a home wireless network, but I couldn't t connect. I removed the password for the connection. Then I connected without any problem.

    According to the statement, all looks like that you try to use a password for encryption wrong!

  • Anyone know when will fixed the problem of material with the "IPAD PRO"? The question that keeps it from starting after the load.

    Anyone know when will fixed the problem of material with the "IPAD PRO"? The question that keeps it from starting after the load.

    According to Apple, it has been addressed in the latest update of the iOS, iOS 9.2.

  • I can't download anything in the App Store, I can not still to update anything without entering my card info and he says "he has a problem of billing with a previous purchase.

    I can't download anything in the App Store, I can not still to update anything without entering my card info and he says "he has a problem of billing with a previous purchase.

    There is something probably wrong with your credit card you enter. Check your previous purchases and know what the problem was. If it does not call apple for more information support. Good luck

  • Problem of sound with windows 8

    After the installation of windows 8, the sound became much less that he used and the program disappear the beats.

    I tried to install the driver from the hp website, but I do not have the software of beats.

    You might think, I do not work for HP, I posted this question on a Privy Council here, hoping to get answers from HP employees.

    I don't even see it for W7 on the drivers page, could be a problem of distribution with bat Electonics LLC licensing

  • problem on copy with hp printer m127

    Hello

    Sorry! my English is not good

    I have a printer hp m127 and I have problem on copy with this printer

    When I copy an A4 of sandpaper or Charger do not print about 1 inch of the bottom of the page, but when I scan this page, it is OK and when I print the document scanned, it's too good

    I don't know why this problem exists

    Thank you very much

    Hi @hamidjoon and welcome to the Forums of HP!

    I see that you have problems with copy.  I would like to help!

    Before we start, I need a little info:

    I'm a link a few HP Support documents below that will show you how to find what operating system you are using. In addition, if you are using Windows, please indicate if your operating system is 32-bit or 64-bit.

    Mac OS X: how to find which Mac OS X Version is on my computer?
    Operating system Windows am I running?
    Is the Version of Windows on my computer 32-bit or 64-bit?

    Please let me know what you find.  Thanks for posting on the HP Forums!

  • Are there problems or restrictions with Xbox in the former CIS countries?

    Are there problems or restrictions with Xbox in the former CIS countries?

    Hello

    Your Question is beyond the scope of this community...

    I suggest that repost you in the Xbox Forums.

    "Xbox a Preview program FAQ.

    http://support.Xbox.com/en-us/Xbox-one/system/Xbox-update-preview-FAQ

    'Home'

    http://forums.Xbox.com/

    "Xbox forums.

    http://forums.Xbox.com/xbox_forums/general_discussion/f/3817.aspx

    _________________________________________________

    "Xbox Forums directory.

    http://www.Xbox.com/en-us/forums

    General

    Material & Discussion Services

    Xbox support
    Agent hours: M - F 09:00-17:00 PT

    Law enforcement forums

    Technical support of Xbox Live rewards
    Xbox Live rewards Squad hours: M - F 09:00-17: 00 PST

    See you soon.

Maybe you are looking for