JasperReports Integration PDF is created with ISO-8859-1 instead of UTF-8

Hi,
This is a strange problem i'm struggling with. Since about one month the PDF's are created with the wrong character set. Instead of UTF-8 (this is also given as a parameter calling the procedure as you see below) the PDF are always created with ISO-8859-1.
declare
l_jasper_report_url VARCHAR2(100) DEFAULT 'http://localhost:8180/JasperReportsIntegration/report';
l_rep_name VARCHAR2(80) DEFAULT'SLRReports/SLR_Statistic_Service_Level_Report_Monat';
l_rep_format VARCHAR2(10) DEFAULT 'pdf';
l_data_source VARCHAR2(20) DEFAULT 'default';
l_rep_locale VARCHAR2(10) DEFAULT 'de_CH';
l_rep_encoding VARCHAR2(10) DEFAULT 'UTF-8';
l_StartDate DATE;
l_EndDate DATE;
l_MinDowntime INTEGER DEFAULT 1;
l_ServiceHour CHAR DEFAULT 'Y';
l_name VARCHAR2(50);
l_typ VARCHAR2(20) DEFAULT 'monatsreport_ccps';
l_additional_params VARCHAR2(200);
l_mime_type VARCHAR2(30);
l_blob BLOB;
BEGIN
l_StartDate := to_date('01.'||to_char( add_months(SYSDATE,-12),'MM.YYYY'),'DD.MM.YYYY');
l_EndDate := to_date('30.'||to_char( add_months(SYSDATE,-1),'MM.YYYY'),'DD.MM.YYYY');
l_name := 'slr-statistik-'||to_char(l_StartDate,'YYYY-MM')||'.pdf';
l_additional_params := 'UserName=SYSTEM'||chr(38)||'String_StartDate='||to_char(l_StartDate,'dd.mm.yyyy')||chr(38)||'String_EndDate='||to_char(l_EndDate,'dd.mm.yyyy')||chr(38)||'SLR_MinDowntime='||l_MinDowntime||chr(38)||'SLR_ServiceHour='||chr(38)||l_ServiceHour;
xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || l_rep_name||':'||l_additional_params);
-- generate the report and return in BLOB
xlib_jasperreports.set_report_url (l_jasper_report_url);
xlib_jasperreports.get_report (
p_rep_name => l_rep_name,
p_rep_format => l_rep_format,
p_data_source => l_data_source,
p_rep_locale => l_rep_locale,
p_rep_encoding => l_rep_encoding,
p_additional_params => l_additional_params,
p_out_blob => l_blob,
p_out_mime_type => l_mime_type );
dbms_output.put_line('p_out_mime_type: '||l_mime_type);
-- insert into report (id,name,typ,mime_type,lob_text,datum) values (p_report_seq.nextval,l_name,l_typ,l_mime_type,l_blob,sysdate);
-- commit;
-- apex_application.g_unrecoverable_error := TRUE;
EXCEPTION
WHEN OTHERS THEN
xlog ('PUT_BLB', SQLERRM, 'ERROR');
RAISE;
END;
It looks like the procedure UTL_HTTP.get_header ignores the encoding parameter and overwrites it with ISO-8859-1. I also tried to set it with UTL_HTTP.set_header before calling UTL_HTTP.get_header buth that didn't help either.
Then I started the JVM is started with the UTF-8 option and that made no change.
There were no new installation on Oracle, tomcat or JasperReports side. So I'm wondering what has caused this string behaviour.
Does anyone had this problem before or has a solution for it?
I appreciate your help very much.
Thanks and regards,
Chris

Hi,
As my understanding, you could choose the encoding ways by yourself:
Change your Internet Explorer 9 language
encoding settings
Alex Zhao
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • Encoding autodetection chooses ISO-8859-5 instead of UTF-8

    A certain site producing HTML in UTF-8 without meta tags. The Firefox detects the encoding as ISO-8859-5, an absolutely dead and useless 'standard'. How to exclude it from the autodetection and maki it proper unicode?

    It's a strange guess, if it's a guess. Are you sure the server isn't sending a header specifying that encoding? To view the content-type header, you can use an add-on (or if it's not a secure page, an external proxy):
    * Live HTTP Headers extension: https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/
    * Firebug extension: https://addons.mozilla.org/en-US/firefox/addon/firebug/
    * Fiddler debugging proxy: http://www.fiddler2.com/fiddler2/

  • My MacBook has Leopard Printer has asked me to 'embed fonts' in pdf text. I have used Web but mostly out of date or Windows focused. Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.

    My MacBook has Leopard. A printer has asked me to 'embed fonts' in pdf text. I have looked csrefully on Web but mostly out of date or Windows related.
    Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.  PippinD

    Hi
    Level 2 posters and Above can report various posts.
    When they do so they have various options that they can attribute as the issue.
    I have reported your post.
    I found the one block of text very difficult to read.
    9:36 PM      Monday; January 28, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Does only Adobre Reader "reads" the fields of a PDF when created with Acrobat?

    I created a PDF with several fields and exported it.
    Then I tried to open it with Firefox and the fields didn't appear.
    But it works OK with Adobe Acrobat.
    Does only Adobre Reader "reads" the fields of a PDF when created with Acrobat?

    Adobe software reads form fields. The rules for how to do form fields are a part of the PDF standard (a book available to anyone) but some companies ignore it and others do half a job. To be safe, use only Adobe Reader. And beware of browsers that ignore Adobe Reader even if you have it.

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • Message.getSubject() with ISO-8859-1

    Hello,
    I'm trying to read the subject of a javax.mail.Message called message into a String:
    String sTxtRequest=this.byteArrayToString(message.getSubject().getBytes("ISO-8859-1"));
    public String byteArrayToString(byte[] bA)throws IOException{
    String s=new String(bA, "ISO-8859-1");
    return s;
    Problem is, I never get german Umlaute (�, �, � etc) right.
    I suppose that with calling message.getSubject() not ISO-8859-1 is used as a charset, but the platform's default character encoding. Is there any way to force the application to use ISO-8859-1 instead (without changing the default character encoding)?
    Thank you,
    rs

    should be...
    ((MimeMessage)msg).setSubject(m_subject, "big5");
    Message class has
    abstract void setSubject(java.lang.String subject)
    MimeMessage class has
    void setSubject(java.lang.String subject, java.lang.String charset)

  • Hi! Ihave a problems with ISO-8859-1

    we define the communications channel type file with file encoding ISO-8859-1, when the messages see in the sxmb_moni is correct the characters is correct and the sign but when you test the message in the id.
    when the messages is send have error with de characters and sign the message have a mistake.
    Someone know something have one idea..

    I've had the same problems with a File Adapter in my XI. If that is your case you have to change your encoding to the encoding of the XI server. I tried with ISO-8859-15(try with it, you never knows) and it worked. Its funny that the encoding in the CC parametrization its the encoding of the server

  • IE 9 incorrectly encoding Unicode characters in URIs to ISO-8859-1 instead of UTF8

    Lets take the example word
    präsentation
    In Firefox, if I specify that as a CGI parameter, on the receiving end, I recieve:
    pr\\303\\244sentation
    which decoded as UTF-8 gives me: pr{U+00E4}sentation or my submitted word präsentation.
    What does IE give me, well let's see.
    pr\\344sentation
    which well, doesn't decode as UTF8 because 0o344 is 0xE4. 
    ä in Unicode is at the codeopint 0xE4. Which as we've seen above, encoded to UTF8 is
    0xC3 0xA4
    So question boils down to this.
    Why does IE9 use ISO-8859-1 instead of UTF8 for non-ASCII characters in URIs?

    Hi,
    As my understanding, you could choose the encoding ways by yourself:
    Change your Internet Explorer 9 language
    encoding settings
    Alex Zhao
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Problems with reading XML files with ISO-8859-1 encoding

    Hi!
    I try to read a RSS file. The script below works with XML files with UTF-8 encoding but not ISO-8859-1. How to fix so it work with booth?
    Here's the code:
    import java.io.File;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.net.*;
    * @author gustav
    public class RSSDocument {
        /** Creates a new instance of RSSDocument */
        public RSSDocument(String inurl) {
            String url = new String(inurl);
            try{
                DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document doc = builder.parse(url);
                NodeList nodes = doc.getElementsByTagName("item");
                for (int i = 0; i < nodes.getLength(); i++) {
                    Element element = (Element) nodes.item(i);
                    NodeList title = element.getElementsByTagName("title");
                    Element line = (Element) title.item(0);
                    System.out.println("Title: " + getCharacterDataFromElement(line));
                    NodeList des = element.getElementsByTagName("description");
                    line = (Element) des.item(0);
                    System.out.println("Des: " + getCharacterDataFromElement(line));
            } catch (Exception e) {
                e.printStackTrace();
        public String getCharacterDataFromElement(Element e) {
            Node child = e.getFirstChild();
            if (child instanceof CharacterData) {
                CharacterData cd = (CharacterData) child;
                return cd.getData();
            return "?";
    }And here's the error message:
    org.xml.sax.SAXParseException: Teckenkonverteringsfel: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (radnumret kan vara f�r l�gt).
        at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
        at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
        at org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(InputEntity.java:914)
        at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1183)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:653)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
        at getrss.RSSDocument.<init>(RSSDocument.java:25)
        at getrss.Main.main(Main.java:25)

    I read files from the web, but there is a XML tag
    with the encoding attribute in the RSS file.If you are quite sure that you have an encoding attribute set to ISO-8859-1 then I expect that your RSS file has non-ISO-8859-1 character though I thought all bytes -128 to 127 were valid ISO-8859-1 characters!
    Many years ago I had a problem with an XML file with invalid characters. I wrote a simple filter (using FilterInputStream) that made sure that all the byes it processed were ASCII. My problem turned out to be characters with value zero which the Microsoft XML parser failed to process. It put the parser in an infinite loop!
    In the filter, as each byte is read you could write out the Hex value. That way you should be able to find the offending character(s).

  • Pdf file created with zero bytes

    Hi Team,
               We have requirement of sending pdf file to webservice and after we will process that pdf file using Abbyy reader. We have issue in getting the pdf file content.
               In web service, pdf file content is received with header information and body content..while creating, pdf file is created with empty...We have used C# WCF webservice..For more information, kindly refer the C# forum code: https://social.msdn.microsoft.com/Forums/vstudio/en-US/b6a05717-2b17-4408-a606-ccbe104e132 4/need-webservice-code?forum=wcf

    In your browser make sure the default PDF Viewer is Adobe Reader

  • URL_DATASTORE .pdf's created with Adobe Distilller 4.0

    I am running Oracle 9i (9.2.0.1.0) on Solaris 8. I am using an Oracle text URL_DATASTORE to index pdf's, word docs, and html files. I am able to successfully index and query for all documents except for pdf's with interactive fields created by Adobe Distiller 4.0. All other PDF's work fine (including those created with distiller 5.0). Is their a known problem with this combination (Distiller 4 and Oracle Text 9.2 ?). When reindexing a Distiller 4.0 pdf I get the following error in ctxsys.DR$INDEX_ERROR:
    DRG-11207: "user filter command exited with status 1"
    I created index w/this statement:
    create index f_and_d_intermedia_index on forms_and_directives(intermedia_index)
    indextype is ctxsys.context
    parameters ('DATASTORE CTXSYS.URL_DATASTORE filter ctxsys.INSO_filter');
    Any help will be greatly appreciated.

    I know of no problems, but support might. I'd recommend logging a tar since they have the 'master' view of the bug database and their internal knowledge base.
    -Ron

  • PDF files created with Primo PDF or Progeny PDF printer

    I am working on a computer with Windows Vista on it and I now have a problem when I create a PDF using the Primo PDF printer, or the Progeny PDF printer -- if Adobe is already open with a file, the new file appears with fuzzy colors. When I close Adobe, the files seem normal. Any idea why this happens? Has anybody had the same problem?

    Not a known problem. And the "already launched" problem points to an issue with Reader.
    Please submit some samples with a bug report for Reader to debug.
    Here is what the issue looks like (click to zoom) :
    On the left side is the PDF file opened with no other instances of Adobe Reader open. On the right side is what the exact same file looks like when opened after another instance of Reader (displaying another PDF file) was already open.
    It's as if the font rendering engine was incapable of multi-threading. Like Reader can only render the font properly if the PDF file in question is the only one it's got in RAM.
    Worth noting :
    Opening a 2nd PDF file with distorted fonts does not affect the first open PDF. That one continues to display normally. Only every subsequent instance of Reader will have this issue.
    Files were saved normally via Photoshop CS5, although this issue has been present for at least 2-3 versions if not more (only started saving PDF's around that time - it's quite possible this was ALWAYS an issue).
    This is strictly a SCREEN RENDERING ISSUE. The PDF file prints to paper just fine with uncorrupted fonts no matter how it looks on-screen.
    As mentioned earlier in the thread, this happens across multiple computers. Whether I create the PDF via Photoshop CS3 in WinXP or via Photoshop CS5 in Windows 7 on a completely different computer... it will have the same issues. Tried it at work, too -- miles away from home. Same issues. Graphic cards are also from different makes, and display the same issue.
    This happens to every single font in the document, regardless of how common or obscure a font it is. In this case, it's Helvetica Neue.
    Again, because this important : even if the fonts look distorted on-screen, they will print out on paper just fine. This is a screen rendering issue.
    Default PDF settings, no layers, vector data non-rasterized.
    Hope this helps.

  • Why does my Acrobat IX not open PDF files created with my Adobe CreatePDF application?

    My Acrobat IX will not open PDF files that I create with my Adobe CreatePDF application

    Thanks for answering ... Long answer sorry ... recently upgraded from XP to Windows 7.  With XP I could create PDFs with/for any document I created ... I think the XP App was Acrobate Complete as well as I could print directly to a PDF file. In any case, I was always able to creat PDFs.  Since upgrading to Windows 7, I lost my ability to create PDF files by conversion or by printing directly to PDF format. Therefore, I purchased the Adobe CreatePDF application from Adobe for about $100.  However all Adobe CreatePDF files have a different screen icon and my Acrobate XI supplied with my new Windows 7 intsall does nor recognize the Adobe CreatePDF created files. I am guessing but I suspect the Adobe CreatePDF app is creating Postscript print files and not Windows compatible print files.  I would like to tell Adobe about this Bug or failure, but it seems I am unable to contact Adobe directly and talk/chat with a human. 

  • How can I resize the PDF I created with a magazine template?

    Hello! I used a template that`s a different size than what I need. How can I resize (make it smaller) the PDF that I just created with this magazine template?

    So you picked a template in A4 format, and now you need letter. The printer can scale the PDF to 11" and it will get even narrower, leaving large margins. Does it have bleeds? That woudl be a disaster.
    Frankly, the best thing is to start over using the correct page size, but you can go to File > Document Setup... in ID and change the shape of the exisiting file. Expect to do a lot of work moving and resizing objects and refitting the type.

  • .replaceAll("[a-zA-Z]", " ") with iso-8859-1

    Hi im using the swedish ��� letters. I want to replace parts in a text String with
    " .replaceAll("[^a-zA-Z_0-9]", " ")" but the problem is that it replaces the ��� letters to. I want to use the iso-8859-1 standard. But how?? Please help...

    sorry the latters i wanted to use is: &ouml; &auml;
    But the forum didnt support them.

Maybe you are looking for

  • BP Transaction: change locator search

    Hello everyone! i need to add a new Search Functionality in the Find By drop-down in the Locator present on BP Transaction. I am able to add new fields and search BP based on those values. But i am not able to capture the Function Code of any Push-Bu

  • Can only get audio when trying to AirPlay from Dish app

    Since updating to IOS 6 I only get audio when air playing from my Dish Network app on my iPad.  I can get audio and video when mirroring; however the quality is horrible and it doesn't fill my screen.  I was able to get audio and video both before up

  • My uploads to Facebook fail with Unknown Error

    Every attempt to upload my projects to Facebook fail with the message "Error, Unknown Error" message. I have tried projects from 15 down to just 5 minutes. I have tried projects with 6 down to just 1 clip. I have tried wireless and wired connections.

  • Deleted a constraint but its still active???

    SQL> Insert into JOB_HISTORY (EMPLOYEE_ID,START_DATE,END_DATE,JOB_ID,DEPARTMENT_ID) values (115,to_date('18-MAY-95',..... Insert into JOB_HISTORY (EMPLOYEE_ID,START_DATE,END_DATE,JOB_ID,DEPARTMENT_ID) values (115,to_date('18-MAY-95','.... ERROR at li

  • My iTunes has disappeared

    Help! My fiancee and I both have iTunes on the same computer. Mine seems to have disappeared. My iPod has her music on it instead of mine, and it doesn't play....it just skips from one song to another without playing a note. Furthermore, when I click