Bug in APEX_UTIL. DOWNLOAD_PRINT_DOCUMENT for special characters?

Hello
I use APEX_UTIL. DOWNLOAD_PRINT_DOCUMENT to download the reports of BI-Publisher. But with special characters and only if the file name is long, the name of the file is in Firefox 10.0.2 not correct. In IE9 its works well. I don't know if this is just a problem of browser or with APEX.

Here is the code:
declare
    v_filename varchar2(1000);
 
begin
    v_filename := 'Umlaut ü 123456789012345678901234567890123';

    APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                       p_content_disposition => 'attachment',
                                       p_application_id      => :APP_ID,
                                       p_report_query_name   => 'Checkliste',
                                       p_report_layout_name  => 'Checkliste',
                                       p_report_layout_type  => 'rtf',
                                       p_document_format     => 'pdf');
end;
With
Umlaut ü 123456789012345678901234567890123
his work and I get a file named "umlaut u 123456789012345678901234567890123.pdf.
But with
Umlaut ü 1234567890123456789012345678901234
(one character longer) his does not work and I get a file named "= _utf-8_B_VW1sYXV0IMO8IDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQucGRm.

If I change the EU u I have no problem, even with much longer file names.

Very strange, isn't?

Any ideas for that?

Kind Regadrs,
Mark

Hi Mark,

I was able to reproduce your problem in Firefox, very strange indeed. And it works fine in IE and Chrome. Seems so very likely browser related. Don't know what to do about it, being German myself, I test with umlauts in general, but have not seen this before. I'll keep digging. Regarding your second question, which is done by the engine. I looked at the source code and found that we cut everything after the first period '. ', it is done because according to the type of document requested, APEX adds automatically appropriate file extension. So, I recommend to avoid the use of periods and also do not include a file extension in your file name.

Kind regards
Marc

Tags: Database

Similar Questions

  • How do I search for special characters in the Explorer?

    I have a collection of 1000 + files in an FTP folder. The problem is that about 50 of them contain & symbols in their file names. I need to find and delete all the files containing the symbol '& '. I thought it should be easy enough to search for the symbol '&' File Explorer. However, in doing so, nothing happens. It returns all files. Is it possible to search for special characters like '&' in the file Explorer?

    Type filename: * & in the Explorer search field, it finds all files where appears the & character in the file or file name extension.

  • There is a range of glyphs for special characters?

    There is a range of glyphs for special characters?

    Hi John,.

    To insert special characters in Muse site check the response of the Zak in this thread-

    Special characters - http://forums.adobe.com/message/4624817

    - Abhishek Maurya

  • Cannot use Alt + for special characters

    Now when I press Alt and typing in starting, it starts to type... I am unable to type Alt + 0176 to get a degree for example symbol. They took this tool far?

    The method of entering characters Alt + numeric keypad doesn't work don't not is a bug in Flash CC. I pointed out a few months ago, but it has not yet been set in "Animate". For now, the only way to enter special characters in Flanimate is of type elsewhere and copy and paste in.

  • tests for special characters? (Winner JS CS5.5)

    Is there some sort of boolean, or function to tell if a character is a member of the Group of SpecialCharacters?

    I need to test if a range of text ends with a carriage return & had used a loop that proved the last character of the items found with myFoundItems [i] .characters [-1].contents.charCodeAt () == 13, which was fine except when the last character is be a special character. Because special characters not properly return a character code, script errors on. I have seen useful messages on filtering & translation of the characters special unicode, but nothing on a simple test.

    Maybe I'm still a rube rather miss a reference of Jongware... my skills are such that it seems that I would need to identify and test all possibilities (ugh!). Looks like he'd come enough that someone would have a practical function laying around...

    Thanks for any wisdom on this point.

    Hello

    1. to check if the myChar.contents is an element of SpecialCharacters , I think that you can just use the test

    ('object' is typeof myChar.contents)

    Since then in other cases typeof returns "string" (assuming that myChar is a valid instance of the character ).

    2. in any case, you can safely and always convert a single character (or any text) to a pure string JS help

    myChar.texts [0] .silence

    This tip prevents the content to return an item of SpecialCharacters property even if myChar is a 'special character '.

    More information on InDesign special characters and Unicode issues:

    Indiscripts: Special characters InDesign CS4/CS5 [Update]

    @+

    Marc

  • Data type for special characters

    Hi all

    I am working in Oracle 11 g r2 EE and Linux operating system. We need to insert special characters in table as! @# $.

    What type of data we use for the column.  I used varchar2 (100). .as data type... is this good or any other data type better we have for the storage of special characters.

    create table conv_defp (conv_id varchar2 (100));

    In the conv_id column we want to insert special characters.

    ! @$# are not more special than to abcd

    VARCHAR2 is fine

  • Validation for special characters-/ :*? "<>| in &lt; af:inputfFile &gt;

    Hi all

    I need to validate the fileUpload to prohibit the download of the file containing the special characters-/ :*? & quot; & lt; & gt; in the name of the file.
    IAM doing all other validations of upload of file inside the Bean.Kindly of backup please let me what is the best way to do.


    Thank you
    Bardet
            String specialChar = ".*[\\\\*/?<>|:\"].*";
            String test = "This is \" a Test";
            boolean lBoolean = test.matches(specialChar);
            System.out.println(lBoolean);
    

    Works for me...

    Timo

  • Windows Search - search for special characters

    Hello

    I didn't chance for this search for this kind of things via the interwebs/googlebing (probably due to the wick to 'Search'...

    In any case, I'm looking in the files for the XML files that contain specific characters, and when I'm looking her apparent there are many parts of these (INDEXED location) are ignored...

    for example:

    content: ~ "change."

    Does NOT return the file that starts:

    you are simply looking for a 'Change' returns this file but also returns files that have things in it that I don't want...

    Research Action = 'Change' returns nothing...

    The CustomerOrder search also returns nothing...

    What is the secret for including things like - mark, equal to, oblique, oblique, braces, brackets, single quote, double quote and so on...?

    Indexing is not necessary for the search function.  It is only necessary for the use of the libraries feature and to be able to search for files in the search/ORB box start and also to allow to change the options to search for specific file types.  In any case, I did a test earlier - apparently Windows 7 search search files for all the texts present xml content.  I found this link which describes the hoops to jump through.  We must be able to search xml files in plain text to the search, not the default filter special MS to xml files.

    http://blog.sdbonline.com/2011/09/Windows-search-and-XML-files.html

  • Need help with the search for special characters in oracle text

    Hi all

    Oracle 11g sql developer 4.0 help

    I am facing this challenge where Oracle text when it comes to searching for text that contains a special character.

    What I've done so far with the help of http://www.orafaq.com/forum/t/162229/

    "CREATE TABLE"SOS" COMPANY ".

    (SELECT "COMPANY_ID" NUMBER (10,0) NOT NULL,)

    VARCHAR2 (50 BYTE) "COMPANY."

    VARCHAR2 (50 BYTE) "ADDRESS1"

    VARCHAR2 (10 BYTE) "ADDRESS2"

    VARCHAR2 (40 BYTE) 'CITY ',.

    VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) "ZIP".

    ) CREATION OF IMMEDIATE SEGMENT

    PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER

    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 'USERS ';

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    BEGIN

    CTX_DDL. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    END;

    /

    CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    PARAMETERS ("LEXER your_lexer");

    SELECT
    company_name
    FROM company
    WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
    ORDER BY company.COMPANY_ID;
    
    

    output

    company_name

    1 LSG SOLUTIONS LLC

    2 Properties@Oklahoma, LLC

    only 2 rows back but must return 3

    It helps if you post a copy and paste of effective enforcement of the full code, including the results.  You posted an index of context with the query with catsearch, which requires a ctxcat index.  You must be a context clue that you did not post and did not add your lexer to.  The following table shows it returns all the lines of 3 as planned using either a with catsearch ctxcat index or a context index with contains, as long that you include the lexer in your create index.  You must also be sure that the index is created, or synchronized after inserting or updating data.

    Scott@ORCL >-version:

    Scott@ORCL > SELECT banner version of v$.

    BANNER

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

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    5 selected lines.

    Scott@ORCL >-table and the test data:

    Scott@ORCL > CREATE TABLE 'SOCIETY '.

    2 ("COMPANY_ID" NUMBER (10,0) NULL NOT ACTIVATE,)

    3 'COMPANY_NAME' VARCHAR2 (50 BYTE),

    VARCHAR2 (50 BYTE) 4 "ADDRESS1"

    5 "ADDRESS2" VARCHAR2 (10 BYTE),

    VARCHAR2 (40 BYTE) 6 'CITY',

    7 VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) 8 'ZIP '.

    (9) THE CREATION OF IMMEDIATE SEGMENT

    PCTFREE 10 10 PCTUSED 40 INITRANS, MAXTRANS NOCOMPRESS SLAUGHTER 1 255

    11 STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    12 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 13 "USERS."

    Table created.

    Scott@ORCL > START

    2 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    3 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    4 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    5 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    6 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    7 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    8 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    9 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    10 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    11 END;

    12.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-lexer:

    Scott@ORCL > START

    CTX_DDL 2. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL 3. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    4 END;

    5.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-ctxcat index and using catsearch queries:

    Scott@ORCL > CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CTXCAT PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4. WHERE the CATSEARCH (company.COMPANY_NAME, 'LLC', ") > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

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

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

    Scott@ORCL >-context and using the query index contains:

    Scott@ORCL > CREATE INDEX my_index3 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4 WHERE CONTAINS (company.COMPANY_NAME, 'LLC') > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

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

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

  • Special characters: Angle symbol

    Hi, I am trying to find the symbol 'angle' commonly used in mathematics (two lines forming an angle of 45 degrees, an acute 'L')

    The answer previous (linked) says to do the following

    -Edit

    -Special characters

    -Math (etc.)

    However, this is an old post and now this option seems unavailable.

    Seems to be replaced by 'Emoji and symbols' However the closest I can find in this list is "⎳".

    I sincerely hope that I have not only lack. Thank you

    Execution of Yosemite 10.10.3

    angle geometry symbol, can it be typed? Which character keyboard or the police?

    Emoji & symbols is just a new name for special characters.

    Did you click on the toothed wheel and customize and add mathematical symbols?  I see ∠ to U + 2220.

  • Special characters of blackBerry Smartphones?

    How can I use special characters (example: an 'e' with an accent as used in the french language, etc.) on my bb 9300?

    While pressing the 'e' key, highlight your trackball side by side, you will find the different variations of e.

    You can do it with most of the keys for special characters.

  • Problem with cfhtmltopdf and special characters

    How can I fix cfhtmltopdf showing '? ' for special characters "1/2", "3/4", "•"? We have 11,0,07,296330 Standard in ColdFusion Server installed.

    After further research and discussed with our system/DBA administrator, we suspected that he needed the CF11 Server JVM setting. We have added '-Dfile.encoding = utf8 "to java.args in ShadoMX/util/Flex/SDK/bin/jvm.config and special characters displayed correctly.

  • Glossary problem with special characters.

    Hello

    I have to Add a/c as a term in the glossary (by plane).

    It seems to be well understood, but after the publication, the term a/c is not active: I can not click on it.

    Could you tell me how to enter this term in order to allow the glossary work correctly for this term.

    Thank you in advance.

    Best regards

    Catherine

    Sorry, glossary widget is very strict for special characters, it does not support the characters in combination like u n or

  • Special characters external text files

    Help, I have a dynamic text box that calls in an external text file. My question is how can you write the code for special characters i.e. & and ' "in the text of the file so that they work! Normal tags work < b > and < li > but I can't the others.

    Example of the sentence:
    The local store of T & S has a good turnout "jolly".

    I tried:
    The local T & amp; S store had one & quot; Jolly good attendance and quote:

    Have I written badly! Can someone help me?

    Thank you Dani

    I think that's what you're looking for...
    http://www.Adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14143

  • 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

Maybe you are looking for

  • How to set the frame rate of NOR-IMAQdx

    Hello. The actual frame rate is 30 fps (MAXIMUM), but I must decrease the value to 10 frames per second. Is this possible?.

  • MCITP exam centres

    Hello guys,. I hope you are all good. I'm from South Africa. I just need to know where I can go and write final exams for MCITP. I use to use Prometric for my exams, but now I can't seem to find a place to review in South Africa where can I go to tak

  • Please provide me with the identification of email from Microsoft support?

    Please give me someone Microsoft Support email id Thank you Atul Khayat E-mail address is removed from the privacy *.

  • Sony Xperia S get Jelly Bean.

    Hi guys,. I was wondering if the Sony Xperia S will get Jelly Bean (if so when?) The Sony Xperia S is a great device, but I think with butter (jelly bean) and much more, the phone could be improved considerably. Someone else knows a slow, crashing an

  • 8500 a Premium: Red print in purple

    Print my Officejet 8500 a red like the purple. I made dozens of print head cleaning and it improves the quality, but not the color. It's a new cartridge HP magenta. Thanks in advance.