Special characters in the call to apex_util.download_print_document management

I'm developing some custom reports I need in PDF format. My client has no BI Publisher so I do some custom xsl to generate the reports. I test that I develop using a simple web page that publishes on the apex_fop.jsp. Then I also test by registering the XML and XSL for the database and then query apex_util.download_print_document them and using, passing the XML and XSL as a blob or clob object respectively.

The question I have is an ampersand. The following line
<td>this &amp; that</td>
works very well when mailed web page at apex_fop.jsp. However when the same exact file is saved in the database and cross apex_util.download_print_document and open with Adobe Reader, he says the file has been damaged and the fop oc4j application errors log wrote
Oracle.Xml.Parser.v2.XMLParseException: Unexpected EOF

What is the difference between the two methods of appeal and how do I get this symbol in the data using apex_util.download_print_document.

Thank you.

Larry,

When you submit your application to apex_fop.jsp via a simple web page and include escaped characters such as '&', your web browser then handles the coding & in your channel. At the TOP, you have a number of different ways to generate your PDF documents. You can use report queries, conventional reports, interactive reports, or call the API to print directly. When using the built-in reports (classic, interactive queries, report), the APEX motor generates the XML document containing your data for you. APEX engine also handles to escape your data, so when you have a value like "this & that" in one of your columns in queries, engine this escape 'as '. The engine also encode the characters such as &, which gets encoded in 26%. And after that, treatment is given an interface between the APEX and the print rendering engine. This interface simply takes the incoming XML data and the style sheet / model and makes an HTTP request to the rendering engine (for example BI Publisher, apex_fop.jsp, etc.). He doesn't no matter what encoding, as had been done in a previous step. The impression APEX API calls this interface directly, which means, that incoming XML data must already be encoded before the call to the EPA. So, if you change your channel 'this & that' to 'the % 26amp; This", it should work as expected. We will have to consider whether we need to improve printing API that allows the encoding of the XML data that is provided by the developer.

Hope this helps,

Kind regards
Marc

Tags: Database

Similar Questions

  • where are the special characters in the new Pages?

    where are the special characters in the new Pages?

    Menubar pages: Edit: Emoji & symbols, or control-command + space combination. Same situation in other Apple applications. In addition, available as a menu item from the menu entry in the menu bar to the right, Finder.

  • Create these special characters in the name of the file as test.? docx or test? PDF in the OS window

    Hello

    Is there a possible way to create these special characters in the name of the file as test.? docx or test? PDF to test the goal?

    I do programming to detect this type of special characters in the file name. This modified script will this type of invalid char file appropriate name, so I need to have the sample to check if my script works.

    I have OSX or Linux. Is there no workaround solution I created in the window itself?

    or can someone create for me so I can go and download instead?

    Thank you and best regards,
    back4more

    Hi Backformore,

    Thanks for posting your question in the Microsoft answers Forum. For any question concerning the development of programs, visit the MSDN hereforums.

  • Chips and other special characters in the App World descriptions

    How is one makes chips and other special characters in the description of the app in the supplier portal?  I see various descriptions app with chips so I know it's possible.  I tried Googling the answer, but to no avail.  Can someone point me to the documentation for it?

    Thank you

    Lester

    I think it's just the Unicode text, so if you include these characters when you submit the form, they will display.

    Your question is perhaps more on how to insert these characters into the HTML form. To do this, because I need it rarely, I didn't copy and paste of a website where I can find the required text. For example, Google for 'unicode ball' and you can find one of them on one of the first findings of the research, such as the Wikipedia article.

    Some people probably have their systems set up to type Unicode directly from their keyboard, but I never got to determine the modern way to do this (and the last time I checked, years, Unicode in operating systems support was still largely missing).

  • How to get special characters in the oracle column only

    Hi all

    with spec_tab

    as

    (

    Select ',' col1 of double

    Union

    Select ',' col1 of double

    Union

    Select 'something' double

    )

    Select col1

    of spec_tab

    How to get special characters in the oracle column only

    You mean like this?

    -------------

    WITH spec_tab
         AS (SELECT ',,,,' col1 FROM DUAL
             UNION
             SELECT ',' col1 FROM DUAL
             UNION
             SELECT 'some thing' FROM DUAL)
    SELECT col1
      FROM spec_tab
      where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
    

    Output:

    -----

    COL1

    ,

    ,,,,

    See you soon,.

    Manik.

  • Special characters in the classic report

    Hello

    I'm unable to display special characters in the classic report.

    "For example""" is coming as ' '.

    Is there a way to fix this?

    It seems that use characterset "WE8ISO8859P15" is causing this issue, which is a single-byte character set and so unable to encode these characters.

    Please correct me if I'm wrong.

  • How to remove special characters from the string using translate() without typing all special characters?

    Hi all

    I am trying to remove special characters without the help of regular expressions.

    translate (the column name or string,'!@#$ & * (* () _) * "" :} {?}) >? /, «, » ')

    I want to eliminate this manual process to give all special characters using a chr() or ascii() function.

    Please show me the way.

    Thanks in advance

    Similar to the solution of Michael...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, i like (select level 1 c from dual connect by level<=>
    3 less
    4 Select + 32 (level-1) double connect by level<=>
    5 less
    6 select + 58 (level-1) double connect by level<=>
    7 less
    8 select + 91 (level-1) double connect by level<=>
    9 less
    10. Select 123 + (level-1) from dual connect by level<=>
    11 less
    12. Select 255 double
    13            )
    14, ts as (select level r, substr (str, level 1) c
    15 t
    16 connect by level<=>
    17             )
    18, tf as (select row_number() (order for r) r
    19                    ,ts.c
    20 TS
    21 I join on (i.c = ascii (ts.c))
    22             )
    23 select replace (sys_connect_by_path(c,'!'),'! ') Str
    24 TF
    25 where connect_by_isleaf = 1
    26 connect r = prior r + 1
    27 * start with r = 1
    SQL > /.

    STR
    -----------------------------------------------------------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

    Or something as horrible as this...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, I like (select replace (sys_connect_by_path (chr (c), 'A'), 'A') as tr)
    3 of)
    4 select c, rownum r
    5 (select 32 + (level-1) as the double connection by level c<=>
    6                         union
    7 select + 58 (level-1) double connect by level<=>
    8                         union
    9 select + 91 (level-1) double connect by level<=>
    10 the union
    11. Select 123 + (level-1) from dual connect by level<=>
    12 union
    13. Select 255 double
    14 tri 1
    15                        )
    16                  )
    17 where connect_by_isleaf = 1
    18 log r = prior r + 1
    19 start with r = 1
    20            )
    21 select translate (str, 'A' |) TR, 'A') as str
    22 * t, I
    SQL > /.

    STR
    --------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

  • I have Adobe Acrobat Pro XI.  I went to special characters from the Edit menu and choose some emoji as Favorites, but I can't understand how to insert in the document.  How can I insert special characters into a document?

    How can I insert emoji or other special characters in a document using Adobe Acrobat Pro XI?  I went to special characters from the Edit menu and may not understand how to insert the special character in the document.

    He's not that kind of editor. You can use the characters in a font. If you can select a font with the emoji, which fits into the case, and then enter the characters, it can work.

    This suggests that you try to do TOO MUCH with a PDF file. It is a common thing, but the message should be: everything simply because you can edit a PDF file, does not mean that it is the most effective way for you to do your job.

  • Hello. Can he the word pdf conversion to retain the original character of the special characters of the algorithm? the formulas have special mathematical symbols. Conversion them kept?

    Hello. Can he the word pdf conversion to retain the original character of the special characters of the algorithm? the formulas have special mathematical symbols. Conversion them kept?

    The equations are a problem. If the equation is text, you can be lucky if you have the fonts on your system. Most of the time I have try, the fonts in the equation are garbage. Expect to have to retype the equations and some special characters. Much also depends on the existence of the fonts on your system. Just in my experience, the equations are almost impossible to convert.

  • empty data file with special characters in the name

    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    Since it is empty, it would be possible to create the data file void anothr
    using the:
    ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
    as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';

    and then recover datafile 'fully_qualified_file_name ';
    ALTER database datafile 'fully_qualified_file_name' online;

    How orders oracle faced with special characters?

    Thanks for your advice

    user6737818 wrote:
    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    It should work using a file as the definition of source file number and a new name for the new file. Works for me:

    orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    
    Database altered.
    
    orcl>
    
  • Replace special characters in the FDF

    Hello

    I've looked everywhere and can't find the answer to this simple problem.  I can handle javascript in an HTML environment using free scripts, but it is not so easy in a PDF form.  I use Adobe Acrobat 9 Pro and I have a form that once completed and submitted, generates and sends a FDF file.  I use a script on the server side, called FormGenie do this and the script hate parentheses and some other characters, they break the FDF file.  Everything I want to do is set up a document level Javascript that find and replace all instances of these special characters with something license as a hyphen - or just a space.

    I tried:

    function clearText() {}
    document. FormName.FieldName.Value = filterNum (document. FormName.FieldName.value)

    function filterNum (str) {}
    re = /\$|#|~|\%|\*|\^|\(|\)|\+|\=|\[|\]|\[|\}|\{|\;|\"|\<|\>|\?| \|| \\|\!| \$/g;
    remove special characters as ' $' and ',' etc...
    return str.replace (re, "-");
    }
    }

    and

    function clearText2 (str) {}

    stringName = stringName.replace (/------$| #| ~ |------% |------* |------^ | \(|\) |--------+ |------= |------[|------] |------[{|------} |------{|------; |------"|"}]) ------< | ------> | \ ? | \|| \\|\!| \$ /g,'-');
    }

    I know that these are not good, but I have to be at least barking to the top of the tree on the right.

    Can anyone help?

    Thank you

    You create the form in Acrobat or LiveCycle Designer?

    In general, you can place a script typo in the script of the text of each filter field field hit, in the case where something replacing the user typed with something else would not cause the concern of the user. An alternative would be to be implemented a script that parses the fields just before the submission form action takes place and not to replace them.

    For example, you can use the following JavaScript typo customized for text fields created in Acrobat:

    If (! event.willCommit) {}

    Event.change = event.change.replace (/ [------$# ~ %------*------*------^ \ (\)------+=------[\]------{\};------"\<\>\?]) \ | \\\ !] /g, "-");

    }

    and it will replace these characters when the user types the data into a text field. May not include all the character you want replaced, but you should get the idea.

  • Special characters in the Caption/Abstract metadata field

    Hi people,

    in Germany, I was very pleased to find that most of the fields of metadata in Lightroom 3 supports special characters like accents and the so-called sharp S today. However, this applies only in the parts to the Caption/Abstract field. Then these special characters display correctly in Lightroom itself and are even written in the correct way DNG file (display correctly in Bridge and the Finder on Mac), they get lost when exported to JPEG (or other formats such as psd and tiff). Interestingly, most other areas (such as title/title and copyright, the same keywords) have not the same question. That's why I started wondering if there is a hidden setting somewhere that allows me to solve this problem, or if it is an acceptable workaround.

    I am aware of the fact that most of you guys, who work professionally with Lightroom, don't not use special characters in metadata fields at all. However, since I will not send my photos to any photo agency but to publish on my (or my client) web galleries I really want theses characters display correctly. After all, there is a huge difference between the German words 'Mass' and 'mass '. So please, don't tell me I shouldn't use umlauts in my metadata - I already know, but cannot help him.

    So far, I exported the photos in JPEG format and subsequently fixed the captions (in iPhoto, for example if the image was to be published on MobileMe Gallery). As I'm getting busier all the time, this procedure, however, is a bit outdated. Now, my question is: does anyone of you have an idea how can I challenge this special-character-loss-upon-export-problem or have a solution for this?

    Thanks in advance and have a nice day.

    f.

    Here's what I think is happening: called "Caption" in the metadata Panel in Lightroom is stored by the save metadata command in a file in two different metadata fields in the picture:

    IPTC:caption - summary

    XMP:description

    Two of them are supported encoding of Unicode characters.  When you export to JPEG, LR also stores the legend in a third field of metadata:

    EXIF:ImageDescription

    This field is not Unicode characters support - allows only 7-bit ASCII characters.  LR cards silently non-ASCII to ASCII characters when it stores the legend here.

    Many tools such as LR, bridge and Finder doesn't always clear as three metadata fields they you are showing.  Tools should always show XMP:Description rather than EXIF:ImageDescription, but they aren't always.

    I recommend getting the free Exiftool or ExiftoolGUI, which will show you with authority the content of all the different metadata fields.

  • Special characters in the password

    Hi, I have chosen a password with caracter special: now @!
    and then, it is impossible to type the character @, so I can't start my machine!
    What can I do?

    Hello
    Sorry, but now you have a big problem. For the BIOS password or supervisor password, it should be used only the following characters: a... z, a.. Z and 0... 9 paper

    Choice of some special characters will cause that the laptop not boot not. In this case, contact your authorized Toshiba Service Provider because the password must be deleted and there is no way you can do it yourself.

  • Read the special characters from the txt file

    Hi guys,.

    on blackberry 9000, I tried to read some special characters like this: ° ²® µ±³ ° ¯´µ±´¯® text file

    using this function:

    FileConnection fc = (FileConnection) Connector.open ("file:///SDCard/test.txt", Connector.READ_WRITE);
    InputStream is = fc.openInputStream ();
    InputStreamReader reader = new InputStreamReader (is, "UTF - 8");
    LineReader lineReader = new LineReader (is);
    line & = new String (lineReader.readLine ());

    what I get is different, I can't write it here, it is difficult to find these characters.

    I change the content of the file to:

    ddfdsfdsfdsfdsfdsf
    aaaaabbbc ° ² ° ¯´µ±´¯® µ±³®

    now I get:

    ddfdsfdsfdsfdsfdsf
    aaaaabbbc, then the same characters

    How to display the same as what I have in the text file?

    Thank you

    To add to what martijnbrinkers said, you need not to the InputStreamReader because you don't use it (and this is why your code has no idea that the file is in UTF-8 encoding).

  • BlackBerry smartphones getting special characters on the letters: torch

    Normally on a PC, you use the alt key and the number keys to set a certain brand on a letter, that is to say an accent sign an e. How do I do that on my BB torch

    On your torch, with the help of hard slide on the keyboard, press and HOLD the desired accented letter or a special character and do scroll the trackpad horizontally (on the side) and you will see the special characters.

    On the touch keyboard, simply touch and hold the contact for a few seconds and the replacement characters will be displayed, to choose.

Maybe you are looking for

  • Phishing attack via the text to the United Kingdom

    More of a warning than a question. I just got a text on my phone with a very good and credible link for you to connect to your Apple ID. this link is fake http://appleidlock.com Do not use that it's a fake site of Apple. The links in the top bar and

  • Qosmio F20: Question on tuner TV and Touch pad

    Hi guys,. This is the first time for me on the forum, I have questions about my Qosmio F20. 1. I installed a Microsoft mouse wireless yesterday, and I noticed that the touch pad system tray icon and Touch and Go system tray icon disappeared! Could it

  • Unable to connect to the 2.4 GHz band.

    iPhone says incorrect password, even though I'm 100% sure that it is correct. I did try to reset the TC, also reset my network settings in my iPhone but it didn't work. The iPhone connects fine to the 5 GHz band, but not for 2,4 GHz! I also tried pow

  • Atheros AR5125 wireless network adapter does not

    Atheros AR5125 wireless network adapter not working not properly, says cannot find driver information too Any help, please notify! JudyB_729

  • Driver Iomega for citizen Floppy more works for floppy drive, but not for memory cards.

    Original title: HELP? Driver Iomega for their citizen disk more.  Œuvres for floppy drive, but not for memory cards. CF/Micro drive.  He is listed, but does not work.  Any suggestions?    use of PSE * address email is removed from the privacy * got h