Not able to produce some Czech characters in pdf using java.

Hi All,
I am not able to produce some Czech characters like ě and č in pdf using java. Can you please guide me what could be the cause. The characters are coded in properties file and its just neglecting č and ě and taking other character next to it.
we have used below code to display the characters but its also not working..first we thought its font issue since Helvetica dont come by default in windows but after putting helvetica font also we are not able to produce the characters.
BaseFont baseFont = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1250, false);
               Font fontStyle = new Font(baseFont, 12, Font.NORMAL, Color.BLACK);

baftos wrote:
4th paragraph at http://download.oracle.com/javase/6/docs/api/java/util/Properties.html explains it.
Note also that Java 6 allows you to produce properties files in encodings other than ISO-8859-1, provided you load them via a reader with a matching encoding. (Also see that link posted by baftos.) This might be more practical then the Unicode encoding which was required in earlier versions of Java.

Similar Messages

  • Problem displaying Arabic characters in PDF using Java APIs

    We are experiencing a problem when attempting to display Arabic characters within a PDF document using the Java APIs.
    The relevant Java code is as follows:
    RTFProcessor processor = new RTFProcessor("example.rtf" );
    processor.setOutput( “example.xsl” );
    processor.setExtractXLIFF(true);
    processor.process();
    ByteArrayOutputStream dataOut = new ByteArrayOutputStream();
    DataProcessor dataProcessor = new DataProcessor();
    dataProcessor.setDataTemplate( example.xdt" );
    if( parameterValues != null && parameterValues.length > 0 )
    setReportParameters( dataProcessor, parameterValues ); // method to set any report parameters from the parameterValues list.
    dataProcessor.setConnection( jdbcConnection );
    dataProcessor.setOutput(dataOut);
    dataProcessor.processData();
    FOProcessor foProcessor = new FOProcessor();
    foProcessor.setLocale( locale );
    foProcessor.setData( new ByteArrayInputStream( dataOut.toByteArray() ) );
    foProcessor.setTemplate( “example.xsl” );
    String xliffFileNameAndPath = getXLIFFFile( “example”, locale );
    if( xliffFileNameAndPath != null )
    foProcessor.setXLIFF( xliffFileNameAndPath );
    foProcessor.setOutput( "example.pdf" );
    foProcessor.setOutputFormat(
    outputFormat == PDF_FORMAT ? FOProcessor.FORMAT_PDF : FOProcessor.FORMAT_HTML );
    foProcessor.generate();
    The method getXLIFFFile( ) gets the relevant XLIFF file for the supplied report locale (if it exists) – the three test files that we used were Italian (example_it_IT.xlf), Spanish (example_es_ES.xlf) and Arabic (example_ar_AE.xlf).
    I imported the following JAR files from the XML Publisher release (version 5.6.2) into my Java application: collections.jar, i18nAPI_v3.jar, versioninfo.jar, xdocore.jar and xmlparserv2.jar.
    The output is OK for all three translations in HTML format, using a charset of UTF-8, and for Italian and Spanish in PDF format. However, the Arabic characters display as question marks in PDF format. The same issue occurs if I stream the output as a byte array straight to the HTTP response rather than save within a file.
    Note that the same RTF, XDT and XLIFF files produce the correct output in both HTML and PDF when executed within XMLPublisher.
    Thank you

    Hi
    I had a similar issue with arabic chars. With PDF layout, chars were appearing properly when preveiwd on local m/c, but as I implement file on server, it was displayed as ?????. I had raised a TAR 5798348.993 with oracle about this and they suggested to apply patch 4028294 Oracle Sourcing J Rollup and then patch 4182914. But later my users changed requirement and i cud not apply the patch to test if it works fine.
    But here, you have suggested that installing fonts would do. Is it really that simple? If yes, dont know what is that patch for which I was told to apply.
    Regards
    Varun

  • Not able to delete some of the pages in subpage

    Hi,
    I am not able to delete some of the subpages in a pagegroup and it gives the following error mentioned below can any one shed some light so that it can be fixed.
    the error that surprised me during the page deletion is
    Internal error (WWC-00006)
    Error while deleting page. (WWC-44130)
    Unexpected error - User-Defined Exception (WWC-35000)
    Unexpected error - User-Defined Exception (WWC-35000)
    Path ID does not exist. (WWC-50001)
    this is the same problem with some of the pages is the same page group but a different set of subpages.
    My portal version is 10.1.2.0.2 (Build: 150).
    it would be very nice of them if any one could give me a solution for this.
    Best Regards,
    Vijay.

    Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad. Photos that were synced from your computer are deleted by moving/removing/de-selecting them from where they were synced from on your computer and then re-syncing.

  • AcroQTP addin not able to identify some PDF object

    hi ,
    Thanks for the AcroQtp Addin ,it works fine with most of the pdf form in a browser.
    But i am not able to identify some XFA list box and edit box .
    In my pdf form some objects are getting identifed and some are not
    Please help me in this
    Thanks,

    hi ,
    Thanks for the AcroQtp Addin ,it works fine with most of the pdf form in a browser.
    But i am not able to identify some XFA list box and edit box .
    In my pdf form some objects are getting identifed and some are not
    Please help me in this
    Thanks,

  • I am not able to sync some videos and apps onto my iphone 3gs. it shows a sync error: 0xe8008001.i updated it but still i am getting the same sync error problem..please help.

    i am not able to sync some videos and apps onto my iphone 3gs. it shows a sync error: 0xe8008001.i updated it but still i am getting the same sync error problem..please help.
    aman

    Are you using Windows...?

  • Operating system not able to display some website or display with many lines. too sllow also.

    I just have a new HP pavillon .but am not able to access some of the website I was using wiht windows 7.What will happen if I change it to windows 7. Do I am going to loose my garanty ?

    I have a iMac and Macbook pro at work and at home also, all less than two years old, one two weeks old, and I have noticed the same behavior.  As in your case it has been going on for a couple of months or so. Depending on the download speed the page eventually loads and it never happens later in the evening or early in the am. Have a PC that has the same issue among others.  My ISP says it's a bottleneck problem that they have no control over.  Minor irritation, if yours is more than that it may be something else but I wouldn't try to fix something that might not be broken, give it some time my connection speeds have been better lately and haven't noticed it as much if at all.  

  • Hello,  I'm not able to download itunes 10.5 on my dell laptop. It says that an error occured and to download separately and then install.  However, this is stillnot working.  Due to this I am not able to update any applications. I am using windows vista.

    Hello,  I am not able to download itunes 10.5 on my dell laptop.  It says to try to download separately and then install.  However, an error message still comes up.  Due to this, I am not able to update any applications.  I am using windows vista.  If I reinstall itunes entirely, will I loose my many playlists that I have? And will this effect the same playlist that I have on my ipod???

    Installing, and uninstalling, applications never touches or removes the data.
    Clean out and uninstall all the apple programs and software thru Programs and manually.
    Might want to use Revo and CCleaner
    I always use manual standalone installers (and keep a couple backup versions)
    itunes 10.5 may affect iTunes media playlists, not sure, depends on what you have.
    A search of these forums will show some threads.
    I'd clean up vista, you need SP2 or later, and specific error message?
    I wonder as you arenot the first with a dell if maybe the OS or included software.
    Security programs like Norton and older versions of Kaspersky have been implicated.
    Also settings in IE that affect pop-ups and plug-ins.

  • Not able to create new e-mail on N8 using Mail for...

    Not able to create new e-mail on N8 using Mail for Exchange.
    Currently using google for my domain, but settings are the same as explained on the google Sync webpage: http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=147951
    When creating reply on mail the application crashes.  When creating new mail it says "Kan bewerking niet uitvoeren" in english: "Unable to execute action".
    Any idea why creating mail is not possible?
    Regards,
    Joris

    problem is known
    more info there:
    /t5/Nseries-and-S60-Smartphones/N8-syncing-with-Google-contacts-amp-calendar/td-p/772020
    there is little workaround aslo.

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • About 2 weeks ago, not able to print all pages in a .pdf document using internet explorer 11?

    About 2 weeks ago, not able to print all pages in a .pdf document stored in a folder (I'm using Windows 7)? 
    It only prints 1 page then my Brother MFC-J4510DW Printer says "Please put another piece of paper in the feed slot"....the problem is the print setting is set to "manual mode" in Windows 7 rather than "general setting".  If you try to change the setting to "general", it will not accept the change.

    Hi.
    I did try using the printParams feature and it worked, but since I need to be able to print sets of non-consecutive pages,  I end up having to bring up the print dialogue multiple times and have the user set watermarks each time. 
    I decided to just create a new pdf in a temp directory containing the selected pages and open this document in a new window.  This works well and allows them to use the print button on the window to print, bringing up the print dialogue just once.  However, since I need to open the document in a way that shows the print button, I am using OpenInWindowEx, with AV_DOC_VIEW, and the option PDUseBookmarks or PDUseThumbs, rather than PDUseNone.  This displays a toolbar which also includes icons for creating a new pdf, deleting pages, etc.  I do not really want to include these icons on the toolbar.  Is there a way to remove unwanted icons from the toolbar, or make them invisible?
    Hope this makes sense.  Thanks for your help.
    Mary

  • Not able to get all the results if i use "get-spdeletedsite" command

    Hi everyone,
    I am not able to get all the results when I use the below powershell command.
    get-spdeletedsite -limit all
    It is giving me only one site, but infact we have more than 100 deleted sites.
    If I use the normal command like below it is giving the below output
    get-spdeletedsite
    Can any one tell me, how can I get all the deleted sites ?
    Best Regards
    Anil Alladi

    Hi  Anil,
    For the Limit parameter of Get-SPDeletedSite cmdlet, when we specify its value to ALL, it  will return all site collections for the given scope.
    For your scenario, the script “Get-SPDeletedSite –Limit ALL” will return all deleted site collections in your SharePoint environment.
    If you want to get all deleted site, you can export the result to csv as below:
    Get-SPDeletedSite | export-csv out.csv -notypeinformation
    Reference:
    http://technet.microsoft.com/en-us/library/hh286316(v=office.15).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Not able to validate the xml document against DTD using SAX

    Hi ,
    i am not able to validate xml document against its DTD using SAX parser even after setting setValidating = true. even if the file is not correct according to DTD , it is not throwing any exception. what could be the reason.? please help..
    kranthi
    this is the code sample i used.
    SAXParserFactory factory = SAXParserFactory.newInstance();
    factory.setValidating(true);
         try {
    factory.newSAXParser().parse(new File("sample.xml"), handler);
         } catch (SAXException e) {
         e.printStackTrace();                         System.exit(2);
         } catch (ParserConfigurationException e) {
    e.printStackTrace();
    }

    Hi karthik
    Thanks for your response
    Actually iam a beginner in java coding hence struggling to come up with the things
    I tried putting your code and onserver side i see it is returning 09:12:17,234 INFO [STDOUT] [root: null]
    actually the same program i wrote in java
    and the same method i was calling from the main
    and it is working fine and the xml document is getting displayed one important thing to be noted here is that the factory.newDocumentBuilder().parse(new File(filename));is returing XmlDocument
    and the printing takes place
    but the in same method public static Document parseXMLFile(String filename, boolean b) in servlet
    the line factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
    and this creating problem , had it returned XmlDocument
    i would have printed the elements one one
    but as it is returning deferredimpl
    iam unable to print the elements
    could you please tell me why factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
    in servlets but in plain java pogram it is returing XmlDocument
    Thanks
    Bhanu

  • I have US$8 cents left in my account.  I have moved to Canada and brought a $50 Canadian prepaid card. I am not able to redeem my C$50 until I use up the US$cents.  However I could not find anything on app store cost 8cents.anyway I can get rid the8cent

    I have US$8 cents left in my account.  I have moved to Canada and brought a $50 Canadian prepaid card. I am not able to redeem my C$50 until I use up the US$cents.  However I could not find anything on app store cost 8cents.anyway I can get rid the 8 cent so that I can top up the $50 canadian prepaid credit

    Click here and request assistance.
    (65561)

  • Not able to log in to my account by using Ipod touch?

    Not able to log in to my account by using Ipod Touch?

    Like what happens when you try?
    Just what are you trying to log into?

  • HT1338 not able to access my external hd which i used on my windows pc ntfs3g and mac fuse aren't helping what to do?

    not able to access my external hd which i used on my windows pc ntfs3g and mac fuse aren't helping what to do?

    Bump-I still really need help with this! The connection keeps cutting in and out and I really don't know how to fix it!

Maybe you are looking for