File adapter - change of encoding in the header of the xml message

Hello!
I would like to change the encoding in the header of an xml message (sent to a a receiver file adapter)
from <?xml version="1.0" encoding="UTF-8" ?>
to <?xml version="1.0" encoding="ISO-8859-1" ?>
We have XI 3.0 with SP15.
Can anybody help me please?
Kind regards
Chris

Hi Chris,
An XSLT map can convert the encoding for you. 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method='xml' encoding="ISO-8859-1"/>
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>
Thanks,
-Russ

Similar Messages

  • Translation - XLF file with the UTF-8 BOM at the head of the file

    Using APEX 3.2, I'm trying to get translations loaded for an application that I'm working on. We are going through the process of generating XLIFF files, sending them to a translator to translate, and then importing the data back in rather than manually editing the translations.
    This works perfectly when I use my text editor to enter the (very poor) translations in the file. Our translator, however, uses a tool that adds a byte-order mask BOM at the head of the XLIFF file when it saves it in order to identify it as a UTF-8 encoded file. This appears to be a valid way for the tool to indicate the encoding being used though, obviously, the encoding in the header overrides it and the BOM is not the preferred method of specifying the encoding of an XML file. However, when we import the file in APEX, and hit the Apply XLIFF button, we get an error
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00210: expected '<' instead of '¿' Error at line 1
    The third byte of the UTF-8 BOM (0xEF,0xBB,0xBF), if interpreted as an ISO-8859-1, would be the upside down question mark character in the error message. So it appears that the APEX importer is interpreting the BOM using the ISO-8859-1 character set and throwing an error that the file is not valid. That is not my reading of the proper XML parser behavior.
    Obviously, we can work around the problem either by asking our translator to use a different tool or by opening up the files we get back in a hex editor and removing the BOM. Is there anything we can do to resolve the issue that doesn't involve adding an additional manual step to the process or the translator changing the tool being used? Or is there something I'm missing that would indicate that a file with the BOM in the first three bytes should not be considered a valid XML file?
    Justin

    Hello Justine,
    >> Are you stating that that APEX translation engine more or less requires the database character set to be AL32UTF8 in order to work properly …
    Not exactly.
    The APEX translation engine uses the XML DB parser, and this one needs a legal XML file. The problem is that in your specific case, the encoding of the XLIFF file doesn’t match the database character set, hence a character set conversion process is involved in the middle. This conversion process – from UTF-8 to WE8MSWIN1252 embeds illegal XML characters in your stored XML file, right where the BOM is. If, for example, your XLIFF file were encoded in Windows-1252, no character conversion would be necessary and the final (database stored) version of the XLIFF would have been remained legal (assuming it started this way). In this case, the APEX translation mechanism will work just fine, even with a database character set of WE8MSWIN1252 (as you can see when you are using your own XLIFF files, which don’t include the (offending) BOM byte).
    >> … even if an alternate character set encodes all the characters we need?
    With your current database configuration, it seems that the alternate character set you are talking about can’t really encode all the characters that you need, as it can’t cope with the UTF-8 BOM conversion. It very well may be the only character it can’t handle, but that is enough.
    As we need to be practical, and a database character set conversion is most likely out of the question, the simple solution is probably asking your translator to save your XLIFF files without including the BOM. I’m not familiar with the professional XLIFF editors you mentioned, however, as UTF-8 encoding doesn’t really need a BOM, saving a UTF-8 file without it should be an option (just like Keith mentioned with regards to very simple editors like the windows’ Notepad, or Notepad++).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to get the number of rows written to the header of the spool file.

    Hi
    I need to create a header line for the spool file .
    the header line should include fixed length values .
    The header should include the number of records found in the table with a maximum begin date (begin_date is the column of the table)
    To get the header in the spool file , i wrote a select query has :-
    --SPOOL 'C:\Documents and Settings\abc\Desktop\output.TXT'
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school
    group by sysdate;
    SPOOL OFF
    which gets me all the rows in the table , but i only want the rows with the latest school_begin_date .
    how can i achieve that ...
    I know that a subquery should be written in the from clause to get the number of rows found with a maximum school_begin_date.
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school where
    select rownum from dad.school
    where school_begin_date = max(school_begin_date) ;
    the error i get is
    ORA-00934: group function is not allowed here
    I NEED HELP ..IN GETTING THE ROWNUM JUST FOR THE LATEST BEGIN_DATE ?
    PLS HELP ME IN WRITING THE QUERY .
    THANKS IN ADVANCE .

    Try this:
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000')||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) || rpad(' ',76,' ')
      from dad.school
    where school_begin_date = (select max(school_begin_date)
                                  from dad.school);

  • JMS Adapter setting the header data of MQ message

    Hi All,
    I need to set the properties in JMS adapter for setting the header data of MQ message.
    JMS_IBM_MQMD_Format = MQFMT_NONE.
    Thanks in advance
    Ravijeet

    Hi All,
    I am stuck in a typical XI issue.......I have a scenario where my input to XI is IDoc and output is xml message going to IBM MQ.
    The IDoc is sending some chineese character which is fine is SXMB_MONI Integration server and also fine in the payload of message monitoring, so feel the message is going fine from XI to MQ.
    But the receiver EDI system which is picking the message from MQ queue says the chinese characters are getting corrupted. They say that you need to set the additional properties in MQ header data
    JMS_IBM_MQMD_Format = MQFMT_NONE.
    How do I do this in communication channel for jms adapter ? How to I set the MQ header data in jms communication channel ?
    Thanks in advance
    Ravijeet
    Edited by: RAVIJEET DAS on May 12, 2009 8:27 AM
    Edited by: RAVIJEET DAS on May 12, 2009 8:27 AM

  • SharePoint 2010 Allow User to Add Comments to Files in a Library and to the Header of the Web-Page

    (1) I need to allow an end-user to be able to add comments to files either when they are added to a library or after they are added. I didn't see a Column available for adding to a Document Library for "Comments".
    (2) I need the same user to be able to add text/comments to the Header of the web-page that contains the library (above the library at the top of the screen).
    When I (the SP Admin) add the "Content Editor Web-Part" to the top of the web-page that contains the Document Library, the Toolbar disappears. The Content Editor Web-Part would be ideal to allow the end-user to add comments to the Header, but I
    really need the Toolbar available.
    Is there another Web-Part that I could use for allowing comments to be added to the Header of a web-page without disabling the Toolbar, or is there a known-fix for allowing the Toolbar to be available and functional after adding a Content Editor Web-Part?
    JCashon

    Hi,
    According to your post, my understanding is that you want to add Comments to Files in a Library and to the Header of the Web-Page.
    (1)If you use the document content type in the library, it will contain the “Comments” field automatically. When you add the document, you can enter the conments. You can also edit the “Comments” field after the document added.
    (2)If you add the add the "Content Editor Web-Part" to the AllItem.aspx Page, you can add the text to the web part as the Header.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to set the header of the file to excel type when writing it?

    Hello,
    I am using POI API to read an excel file that I have previously written using Java, but not using POI (I've written the file using Microsoft office xml and then writing it using FileOutputStream with an xls extension).
    The problem is that when I read back the file I am getting this error:
    The system was unable to upload the file: Invalid header signature; read 7311066695147732796, expected -2226271756974174256.
    which means that the header of the file is not excel typed.
    If I manually open the file and save it as excel POI is able to read it but I don't want to do this as this entire process of writing/reading the file should be automated. I don't want to use POI for writing the file because POI cannot provide me everything that I need when Microsoft office xml can.
    So, my question is simple: Is there a way, using java, to set the header of a file to excel so that POI will recognize it as such?

    hi roy,
    @see: http://poi.apache.org/hssf/index.html
    "HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. It does not support the new Excel 2007 .xlsx OOXML file format, which is not OLE2 based."
    maybe jexcelapi supports you in writing your xls:
    http://jexcelapi.sourceforge.net/
    hth, jens

  • Changing the heading in the variable entry screen

    Hi,
    I have the varible entry in my web template where in the user enter the starting year and ending year .The heading of the Variable entry screen is defaulty Variable entry I wanto change the heading from Variable entry to Years
    In 3.5 WAD what ever description is assigned  to the webtemplate appears as the heading for variable entry scree but this is not happening in 7.0
    Pls let me know how can this be done
    Thansk
    Sany

    Hi Satyajit,
      Since the variable entry screen orignates from the BI system in conjunction with a web template it cannot be invoked separately. Do you plan to run the web application within a Web Dynpro application (i.e. an iFrame)? One option would be to use the BI Java SDK to populate the values in a user selection screen and then use the user's selection to execute a query or MDX statement. Of course you Web Dynpro app is responsible for rendering the result set.
    Regards,
    Oliver

  • Hi gurus  in BDC how to print the header on the top of the data

    hi gurus  in BDC how to print the header on the top of the data

    hi,
    while downloading the file using gui_download function module
    in that function module in  TABLES  filednames parameter is used to get headings
    example:
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
      BIN_FILESIZE                    =
           FILENAME                        = FILENAME1
          FILETYPE                        = 'ASC'
          WRITE_FIELD_SEPARATOR            = 'X'
         TABLES
           DATA_TAB                        =   T_ZETBR
          FIELDNAMES                       = IT_HEADER
    reward if useful,
    thanks and regards

  • Not show the header on the first page of a section

    I am writing a manual that has about 7 chapters. Each chapter is its own section. I have been able to go in and create a header for each of these sections very easily. However, it's not quite clear how to NOT show the header on the first page of the section. For example, one of my sections is called "Personal Finances", so I have that in bold a the top of the page using Header 1. Because I have that, I don't also need "Personal Finances" showing in the top right corner in the header.
    How can I make it so that it won't show on the first page of each section?
    Thanks!

    How can I make it so that it won't show on the first page of each section?
    In the "Layout Inspector" under the "Section" tab, check the "First page is different" option while one of that section's pages is active/selected/displayed. Then add or delete the header as may be needed so that first page of section does not display the header and all other pages in the section do display. (I.e., what you specifically have to do here depends on whether or not you are already on the first page of the section when you make the change to the display "switch" and whether you are starting with a blank or non-blank header.)

  • Mdworker[600]: No separator between the header and body in message _CMFMemoryMessage: 0x7f8665118800

    Any Suggest about this issue on console:
    mdworker[600]: No separator between the header and body in message <_CMFMemoryMessage: 0x7f8665118800>
    Best Regards

    Thanks very much. It's turned out to be a font problem. About 30 of the fonts in my account directory /users/me/library/fonts folder were corrupted. They were somehow being viewed as unix executable files instead of font suitcases. !??! No idea what happened there.
    I used Pacifist to reload fonts from my OSX installation disc, but this didn't seem to help. Instead, I found other copies of most of the corrupted fonts in the microsoft office/office/fonts folder, and replaced the corrupted fonts in my home library w/ those.
    I was alerted to the fact the the problem was fonts when I tried to open an Excel file; it came back with messages that these various fonts were corrupted and needed to be removed. Strangely, though the corrupted fonts were in my home directory font folder and not the MS Office font folder, Excel was tripping up - i.e., it wasn't using the fonts from the Office folder. Hmm.
    Finally, there are still a few fonts that are corrupted, and whose source is a mystery to me. They didn't come from the OS installation disc and they don't come from Office; consequently, I can't fix them. They are: Geneva CE, Geneva CY, GrCourier and N Helvitica Narrow.
    Does anyone know where these fonts come from?

  • Compressor adding white frames at the head of the movie converted

    i used compressor to convert footage from mp4 to Apple prores 1024x576 16x9 and also change different frame rates to 25 fps
    I resized all the big videos to 1024x576 and maintained the smaller videos like 640x360 in its original size as i will composite them together to maintain quality.
    everything went well as compressor makes a very good job in resizing and frame rate coversion.
    i noticed that compressor added at the head of the movies a white frame on most of the converted movies
    and after importing the movies to fcp 6  i found that every time i use a movie with a white frame in the head Fcp crashes.
    is it because of the frame rate as i noticed that the white frames are in the movies with for example 23.98 that were conformed to 25.
    i cannot edit because of fcp quits.

    What do you have the most of? 1920, 1280, SD?
    What is the final deliveable? web, broadcast, blu-ray, SD DVD?
    Maintaining the aspect ratio can be done in your sequence settings whether your sequence is HD or SD.
    640x360 will still only fill about 1/2 of the 1280x720 screen at 100%.
    You can scale it to fill the screen but you will take a quality hit.
    In most cases putting 1920 in a 1280 sequence isn't going to make the baby jesus of quality cry.
    In my experience upscaling SD outside of FC in another program doesn't usually help with quality.
    I do the scaling in FC and know that I will have to render. I would still use Compressor for the frame rate codec conversion but do not change the source size unless you are converting to a more friendly broadcast size.
    You may want to consider that SD footage doesn't have to fill the entire screen.
    You can do other treatments to the footage so that you still fill the entire screen but the actual footage isn't being scaled to fill the entire screen. Blurred footage, stills, etc for a background can help with this.

  • Modifying the header of an xml report

    I am looking to add some additional information to the header of horozontal.xsl but am struggling to find the right format. At present i have rewritten the modifyreportheader callback. It works fine for text but i cant get it to work for xml. Any suggestions? Many thanks in advance
    Tony 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

    You can refer to the Adding Images and Text to Report Headers and Footers topic in the NI TestStand Help for information about changing the header for an XML report. 
    Callie Jones
    TestStand Documentation Team

  • Intercept the resize event of the header of the column

    hi
    how to intercept the resize event of the header of the column

    Add a changeListener to the width property:
        firstNameCol.widthProperty().addListener(new ChangeListener() {
                @Override
                public void changed(ObservableValue observable, Object oldvalue, Object newValue) {
                    System.out.println("The column width is changed: New width is " + newValue);
            });

  • HT2506 I am trying to fill out a PDF form from an internet site, but when I go to print it, none of the content prints, only the header of the document.  Help!

    I am trying to fill out a PDF form from an internet site, but when I go to print it, none of the content prints, only the header of the document.  Help!

    Instead of printing it, try saving it as a pdf from the print menu, and then printing the pdf out.

  • I need to make a copy of an entire email, including the header w/the sender's info and time, etc. to insert into a letter, etc. How can I do this w/out cutting and paste and doing the header separately from the text.

    I need to make a copy of an entire email, including the header w/the sender's info and time, etc. to insert into a letter, etc. How can I do this w/out cutting and pasting   the header separately from the text. I know there is a way besides a screen shot but I've spend hours trying to find it.

    Smurfslayer wrote:
    For the particularly persnickety types you might want to expose the full headers in the email message as well.  It's easy enough to do, from mail's 'menu' select "view"; then "message"; then all headers.
    Another option you could use is a screen capture using Grab.
    Activate Grab, then shift + command + w (for a window screen shot).  Then confirm the window selection and click the mail message. 
    Dave
    Why are you addressing this to me...?
    I am not the OP...

Maybe you are looking for

  • Desktop manager 7.1 fails to restore Contacts and Calendar from backups

    Today I discovered that I lost my contact and calendar lists on my playbook after upgrading to OS version 2.1.0.1032. As a precaution I backed up my device data and apps using desktop manager 7.1 and used windows explorer to duplicate my media folder

  • Is it possible to back up data if hard drive is crashing or has crashed

    My son's computer froze and I have tried to reboot while holding down the option key and by holding down Command + Option + R for an internet reboot. When I try to repair utilities from the internet, I cannot choose the hard drive; instead, my option

  • Problem downloading mountain lion

    I begin to install Mountain Lion on my Macbook Pro and I get an error screen and they make me reboot back to 10.6.8

  • CBO or RBO

    Hi folks I am using Oracle 9i (which was Oracle 8 before, patch was applied,etc..) How can I determine if I am using CBO or RBO ?

  • 16:9 Encoding Question

    Hi: I am trying to encode a 1920 x 1080 HD file as an SD file. Is it possible to encode the HD file so that it appears letter boxed on a 4:3 television, but "pops" out to 16:9 when played back on a 16:9 monitor? If so, any advice on the settings? Tha