How to set encoding of the file when using UTL_FILE

Hi,
We are using HRMS 11i applications. 11.5.10.2 version. Two languages are installed in our instance. American English and Canadian French.
We have requirement to send employee details in a text file to third party vendor. We are using UTL_FILE to write details to the text file from PL/SQL procedure.
The generated output file has encoding as "UTF8". Where as vendor is not able to process this file. They required encoding as "ANSI".
How can we change the encoding to "ANSI" ?
Values of character set parametrs are as follows.
NLS_CHARACTERSET UTF8
NLS_NCHAR_CHARACTERSET UTF8
Any inputs are highly appreciated.
Regards,
Veerababu.

You should take a look at the UTL_FILE documentation. As far as I know standard UTL_FILE calls write to the file system in the database character set. There are mirrored calls, but those write to the file system in UTF8.
You may want to look at the UTL_RAW.CONVERT function. You may be able to use that in conjunction with the UTL_FILE.PUT_RAW API to write out data in the correct character set. To be honest, I've never tried this approach.
Edited by: Centinul on Sep 21, 2012 8:16 AM

Similar Messages

  • How to set fetchsize of sql Query when using Database Adapter.

    Hi All,
    I am using DatabaseAdapter to connect to database and retriving huge amount of data.For improvement in the performance I want to set the "fetchsize" of sql query. I know fetchsize can be preset in Java using Jdbc 2.0 API.Please let me know how to set this value in BPEL when using DBAdapter?
    Thanks
    Chandra

    I talked to the developer of the db adapter - and he told me this feature will be available in BPEL PM 10.1.3 (which is supposed to be production later this year, and a public beta soon). If this is an emergency I would recommend going throug Oracle support and have them file an enhancement for 10.1.2.0.2
    hth clemens

  • How to set Updates with 11.3 when using Apple Remote Desktop for installation?

    So for all pre-11.3 versions of Flash Player on OSX, I have just pulled out the "Adobe Flash Player.pkg" installer package from the installer .dmg and used Apple Remote Desktop to deploy Flash to the Macs I manage.
    However, when doing that with Flash 11.3, this leaves the "Updates" setting in the Flash Player System Preference set to "Notify me to install updates".
    I'd like to push something that would set this to "Allow Adobe to install updates".
    Is there a way to modify the .pkg installer to have the System Preference set to that value (or push/copy some other .plist file to the clients to have that setting enabled?)
    Thanks!

    I poked around a bit and the file seems to be:
    /Library/Application Support/Macromedia/mms.cfg
    I'd like to get some confirmation from Adobe that this is the correct file to push, though (it seems like it as it only contains this):
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1

  • How do I avoid breaking the law when using a MBP?

    My MBP won't let me set the correct wifi country code so that I can comply with local regulations (instead it allows the incorrect code to be set by other peoples routers).
    I don't want to interfere with military or emergency services frequencies and therefore need to find a way to set the code correctly.
    Can anyone help?
    thanks

    Hope the info from this thread helps.
    https://discussions.apple.com/message/15846632#15846632
    Best.

  • How do I turn off the trackpad when using a mouse?

    Often, while using a mouse on my MacBook Air, the cursor will jump to a strange location, thus I am typing in an inappropriate place causing confusion as to where I am in an email, document, or other application. Is there a way to stop this from happening? It is very annoying. I think it's caused by a Trackpad issue.

    Hope the info from this thread helps.
    https://discussions.apple.com/message/15846632#15846632
    Best.

  • Yours sincerely! I just bought a Sony DCR-SD1000 camera only when installing the cd drivers not supported by the operating system Machintosh. I've contacted the seller said the store did not provide for the apple os. How can I move all the files on the ca

    Yours sincerely! I just bought a Sony DCR-SD1000 camera only when installing the cd drivers not supported by the operating system Machintosh. I've contacted the seller said the store did not provide for the apple os. How can I move all the files on the camera the port out is to use a USB data cable to a laptop for my macbookpro can not read the contents of the file and the camera. I also want to use the lens on the camera as a substitute for the embedded camera on my macbookpro, what should I do to replace the embedded camera on macbookpro with sony camera so that the camera could be more variety and can I record when I turned macbookpro . Please help for this so that I can quickly capture the results from sony camera to my macbookpro. Thank you.

    See this page http://macosx.com/forums/networking-compatibility/296947-sony-camcorder-my-mac.h tml - might be some helpful tips there.
    Clinton

  • I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

  • I'm getting a 9041 error when trying to convert files to AAC -- any ideas on how to fix it?  the files files in iTunes show up as Apple Lossless but i can't put them on my iPod

    i'm getting a 9041 error when trying to convert files to AAC -- any ideas on how to fix it?  the files files in iTunes show up as Apple Lossless but i can't put them on my iPod

    "I have been able to convert to AAC by first converting to AIFF  and then to AAC. This is a pan though."
    this worked for me.
    thanks.

  • How do I split a pdf file when the file size is too large?

    How do I split a pdf file when the file size is too large?  Thanks!

    With Adobe Acrobat.  It can also optimize your document to make the size smaller.

  • How do I read a winmail file when it is attached to an e-mail?  It doesn't open the right way in Excel on my iMac.

    How do I read a "winmail" file when it is attached to an e-mail?  It doesn't open in Excel on my imac, just code...help! 

    Winmail is for Windows only. Excel does not open emails.
    Ask the sender to send the file in a more up to date format.

  • How to Set JFilechooser to show file with the same extension in the filetyp

    How to Set JFilechooser to show file with the same extension in the filetypes??
    help

    I also don't understand, but if you mean how to display only files with a certain extension in your JFileChooser then you should have a look at the JFileChooser API:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html
    The introduction shows an example of how to do that.

  • When i try to access iwork on iCloud on my mac, i get an ipage logo with 2 options learn/get image. I already have ipage on my mac. How can i get to the file  management page?

    When i try to access iwork on iCloud on my mac, i get an ipage logo with 2 options learn/get image. I already have ipage on my mac. How can i get to the file  management page?

    Lion will only let you add documents to iCloud through iCloud.com, iCloud.com requires the iOS apps before you can use it.
    Mountain Lion will let you add documents to iCloud from the iWork apps themselves, you don't then need the iOS apps before they can be opened on another Mac.

  • When I attach a file in my email it is embedded.  How do I just attach the file.  Windows users would like to be attached not embedded how do I that.

    When I attach a file in my email it is embedded.  How do I just attach the file.  Windows users would like to be attached not embedded how do I that.

    I suspect that your Windows pals are using an e-mail program from the Stone Age.
    In the last 10 years or so most people prefer to read attachments “in-line”. This allows text and images to be intermixed allowing an easier method of explaining things.
    When I am dealing with a old-fashioned, obsolete Windows user that is using an older e-mail program I simply put all the attachments at the very end of the e-mail. This will make it appear more normal to them.
    Not all Windows programs work in this primitive fashion. But as Mac users, we have become more accustomed to the modern methods of viewing attachments in-line.

  • How to set encoding for xml Marshaller?

    Hi,
    I am using SAPXMLToolkit. And I use XMLMarshaller to convert from xml to java classes (jaxb classes). Now when I get some characters like ü, the marshaller gives an error
    com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 69(:main:, row:1, col:323)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:207)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:205)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:152)
         at com.sap.engine.lib.xml.parser.XMLParser.scanCharData(XMLParser.java:1896)
         at com.sap.engine.lib.xml.parser.tokenizer.XMLTokenReaderImpl.next(XMLTokenReaderImpl.java:190)
    How do I solve this?? How do I set encoding for the marshaller?
    Regards,
    Guru

    Hi ogre,
    To set the encoding scheme for an XML document, you can use the createProcessingInstruction. Our CVIXML instrument driver (which
    is basically and user-friendly wrapper made around the MSXML interface) uses
    this method to specify the version of the XML document. So, what you could do
    is simply modify our existing CVIXML instrument driver to include the encoding.
    It's actually quite simple to do this.
    First off, open up the cvixml.c file
    located in the <CVI>\toolslib\toolbox directory in CVI. Then change the
    value of the constant XML_PROC_INSTR_DATA
    (located on line 42) from "version=\"1.0\"" to "version=\"1.0\"
    encoding=\"UTF-8\"". The save your source file and
    select Options >> Create Object file. This object file
    (cvixml.obj) is attached to your cvixml.fp function panel. 
    To test this out, you could simply use some code like
    CVIXMLNewDocument ("RootElement", &xmlDoc);
    CVIXMLSaveDocument (xmlDoc, 0, "C:\\Test.xml");
    Then the Test.xml document should say
    <?xml version="1.0" encoding="UTF-8"?>
    <RootElement/>
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • Firefox 33 doesn't display a pdf file when using the response object

    Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Response.Clear()
    Response.ClearHeaders()
    Response.Buffer = True
    Response.ContentType = "application/pdf"
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
    Response.WriteFile(strPDF)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    Session("filname") = ""

    Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Dim User As New WebClient()
    Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
    If Not (FileBuffer Is Nothing) Then
    Response.Clear()
    Response.ClearHeaders()
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-length", FileBuffer.Length.ToString())
    Response.BinaryWrite(FileBuffer)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    End If
    Session("filname") = ""

Maybe you are looking for

  • OPEN_CURSOR JOIN_FLEXA_BKPF error sap BI in FM FAGL_GET_LINE_ITEMS.

    Hi Experts, ECC to BI extraction job getting failed in ECC for extractor 3FI_GL_LG_SI and dumps in ST22 are getting generated. As per the initial analysis from Basis team, seems to be an ABAP Programming Error. Below is the error details: An exceptio

  • Wireless setup WPA2 and software

    Problem. I have about 25 airport extreme base stations put around our school. There seems to be one problem. We moved our network to WPA2 and have a radius server all setup and working. everything is working perfect except when we try to get 25 ibook

  • HT2506 how do I create a signature for preview without camera? (I have a Mac Mini)

    How do I create a signature in preview without icamera? I hava a Mac Mini.

  • Incopy CS4/Win: Prevent the input or change text in tables

    Hi I have a plugin for InCopy CS4. In this plugin, I like to prevent the input or the change of text in tables. This works in the layout window, I can detect if the user clicks into a table and then I prevent the input. - How can I do this in the Gal

  • MQ, XA and WLI

    I'm trying to use MQ in a WLI process (JPD) with full XA support, without success.           My configuration is as follows:           -Weblogic 8.1 SP3, running an Integration domain           -Websphere MQ 5.3 CSD07, running on the same physical bo