How can I make an XML file print �, � and �

When I write an xml file by hand I can use the European alphabet and the letters �,� and �. I can also write to an ordinary text file from my Java code and still be able to display the letters as they should.
But when writing to an xml file in my Java code the letters are converted to some weird mishmash characters.
Why is this? What can I do?
// Elin

I'm assuming you are working on a Windows computer (although you can run into this on any computer.)
If you don't tell java the kind of character encoding you want, then you get an assumed desired character encoding - in Windows, the OEM characterset which does not include the characters you are trying to write.
A way to handle this is to output the kind of file you really want - that is - with the encoding you want. I suggest you might try UTF-8, which you can get by simply instantiating your output writer with the encoding string "UTF-8".

Similar Messages

  • How can i make Distiller autoname file ( when exprting from other application?)

    hello everyone,
    i have been searching for a solution for a long time please help me >
    we have more than 100.000 docuents saved as pic on our network at work by using ( Laser Fiche). I wanted to save all files by using acrobat distiller but when i try to print a file i was prompted to enter a file name! but i don't want to... i want the distiller create a file name automatially.
    in the preferencesd i unchecked ( ask for PDF .. ) but the problem is that all files saved were overwritten because distiller was imporing the file name from Laser Fich!
    how can I make distiller ( autoname files like 0001 0002 0003 and so on) ?
    forgot to tell you that i am using acrobat version 5 ( and windows xp + laser fiche at work )
    thanks in advance

    thanks Bill@VT -
    it didn't work
    I opened the properiteis of the distiller and uncheck the ( prompt for the PDF file name) so that the distiller can save files automatically . it did but by overwriting the files because the original files in the LASER FICHE have same names so the distiller saved one file only by overwriting ....that's why i want to make distiller to name files when saving them ( the distiller are imorting the files from Laser fiche only but i want it to autoname them )
    i also opened distiller properites and unchecked the ( ask to replace existing PDF filename ) the distiller was always asking me to replace file ! and I can't do it this way because I have more than 100.000 docuents!
    sorry , I know this is a very difficult question
    but I would very happy if you can help me
    hank you
    Al

  • How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?

    How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?
    Basically I like the control over the compiling process that I get by using Ant - but I really want traces to come up immediately without having to switch contexts.
    I have an ant file that successfully launches a swf in the flashplayer - but I don't know how to make the flex console start displaying the trace output. I assume that I will have to point it to the appropriate trace output file - but I am not sure how to have ant even address the console.  Is this possible?
    Here is the the target node from my ANT file:
        <target name="launch">
            <exec executable="${FLASHPLAYER_EXE}" errorproperty="trace.output">
                <arg line="'${DEPLOY_DIR}\test.swf'" />
            </exec>
        </target>
    Thanks for any thoughts, or alternatives!

    For the record, I ended up using Logwatcher - it worked perfectly.
    http://graysky.sourceforge.net/

  • How can I make a .gif file work in Keynote on my iPad Mini?

    How can I make a .gif file work in Keynote on my iPad Mini?
    Have saved a .gif file to my Camera Roll, and it works fine as I have checked it through mail. When I import it into Keynote however it won't animate. Even when I play slide. Any suggestions?

    The can use apps such as Apple's Pages app for Word documents and Numbers for Excel spreadsheets, and from third-parties apps such as Documents To Go ('premium' version) and QuickOffice Pro HD.

  • How can i make shorten systemlog files and joblog files on OS

    Hello
    How can i make shorten systemlog files and joblog files on OS

    Hello Jan,
    You can limit the size of system log.
    The size of the application server's System Log is determined by the
    following SAP profile parameters. Once the current System Log reaches
    the maximum file size, it gets moved to the old_file and and a new
    System Log file gets created. The number of past days messages in the
    System Log depends on the amount/activity of System Log messages and the
    max file size. Once messages get rolled off the current and old files,
    they are no longer retrievable.
    rslg/local/file /usr/sap/<SID>/D*/log/SLOG<SYSNO>
    rslg/local/old_file /usr/sap/<SID>/D*/log/SLOGO<SYSNO>
    rslg/max_diskspace/local 1000000
    rslg/central/file /usr/sap/<SID>/SYS/global/SLOGJ
    rslg/central/old_file /usr/sap/<SID>/SYS/global/SLOGJO
    rslg/max_diskspace/central
    Refer to http://help.sap.com/saphelp_nw70/helpdata/EN/c7/69bcbaf36611d3a6510000e835363f/content.htm
    for explanation of profile parameters.you can reduce the size of system log using rslg/max_diskspace_local and rslg/max_diskspace_central
    But you can't reduce the size of job log files on OS
    Rohit

  • How can (parse) i use XML file with missing EndTag

    hi,
    i have an application which writes an "XML file".
    another application should read that XML file, build an DOM and
    access the nodes with xpath.
    my problem. if the first application is not finished there are tags
    missing. e.g. </xml>. but the seconds application cannot wait until the first application finishes it task.
    if i now read the XML file the parser cannot load it because the end tags are missing.
    my question:
    how can i deactivate the check or how can i read the XML file and access it via XPath (my application is using at the moment XPath to access the nodes and i dont want to change that)
    as parser i am using XERCES
    alex

    As far as I know, you can't do this - xml must be well formed (this is sort of a bedrock of xml). There may be some work around's, but I'm not aware of any - and they would most likely be hacks.

  • How can I make the media size print option "custum" become available if it is not currently?

    How can I make the media size print option "custum" become available if it is not currently?

    See this article also: http://readwrite.com/2013/10/15/ios-7-fixes-iphone-4-4s#awesm=~oktbEwjOyyvr80

  • How can I make the pdf file size smaller?

    How can I make the pdf file size smaller?

    Hi vickyb,
    Reducing the file size of PDF requires Acrobat (one way is by choosing File > Save As > Reduced Size PDF). If you don't have Acrobat, you can try it free for 30 days. See www.adobe.com/products/acrobat.html for more information.
    Best,
    Sara

  • How can we make a .DLL file..???

    Hi,
    can any one tell me how can we make a .dll file..
    can we insert any font file (.ttf), image, icons in in the dll file to call them progrmatically in forms 6i...and use them onu where
    like i am currently using d2kwut60.dll file to call mouse cursors that loaded into it..
    I would appreciate any response to this issue..??
    regards,

    Ok,
    Let me take this example.
    Supposing A vendor with 3 AP open items, B vendor with 2 AP open items.
    When making a payment proposal, SAP shows only 2 lines, namely, collected by vendor code.
    Looking at DME file, however, it shows 5 lines which means all individual open items.
    What we want to make is 2 lines in DME file, which means grouping invoices by vendor in a DME file.
    Hope it makse sense.

  • How can I pass a xml file to the webservice?

    Hello friends,
    How can I pass the XML file to any webservice API ?
    I have all the inputs of API in to the XML file.
    Please note:- I don't intend to do any .NET or Java coding to populate the data in the objects .Instead I plan to input the data to the webservice direcly from the XML file required schema.
    If necessary I can use Oracle Bpel process manager for it.
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]

    Well, I've used it (or rather: tried it); did not/could not find the many options to export at a nearly lossless conversion for HD footage (hence my disclaimer "don't know"). Here is a screenshot of the Handbrake options:
    And here are the choices and settings from MPEG Streamclip:
    Maybe not empirical, but enough for me to have an opinion.

  • How can i write a XML file with oracle data ?

    How can i write a XML file using PL/SQL.
    Can i do as follows.
    1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W')     ;
    2.write all the required tag and value using UTL.put_line
    that is enough. Is not, please guide me to write.
    gk

    Having Oracle 9i.
    One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
    1. l_str := ' "E27" '
    or
    2. l_str := ' E27 '
    UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);          
    1 case : in XML file : "E27"
    In 2 case : E27
    When we write a XML file through editors , we have to define the constant within quote . is it?      
    Which one can i use ? Or any other way is there ..
    Thanks and Regards
    gopi

  • How can I make a PDF file from each folders with layers, where each page is a each folder?

    How can I make a PDF file from each folders with layers, where each page is a each folder?

    I found an answer to my own question. A work around of sorts.
    Download Photoshop Elements 6 for Macintosh. With PSE6 I made a slide show with 550 images 1920x1200, without thumbs. I ran into one problem making the slide show. My images contained 4 images which had not ben created by Photoshop and could not be included in the slide show. Opening the images in Photoshop CS4 and re-saving them still did not make then acceptable. Not a big deal. I probably could have fixed the four images by stripping all EXIF data before opening them in Photoshop. BTW, PSE6 made the slide show in demo mode.
    I hope the bug in Photoshop CS4 will be fixed in Photoshop CS5.

  • My husband uses adobe cs5. The clone tool isn't working and after resetting the tools adobe bridge now goes to picasa. How can we make the clone tool work and have bridge go to cs5 not picasa?

    My husband uses adobe cs5. The clone tool isn't working and after resetting the tools adobe bridge now goes to picasa. How can we make the clone tool work and have bridge go to cs5 not picasa?

    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How can I make my account in syria and i have not acredt card

    how can I make my account in syria and i have not acredt card

    Sorry.  Don't believe that is possible.

  • How can I Make just one color pop and the rest a black and white photo??

    How can I make just one color pop and the rest of the photo black and white?? I'm using iphoto...

    3rd party image editors like Photoshop Elements for Mac can do it:
    Click to play video screenshot
    Or use it to keep an object in color and the rest B/W.
    Click to view full size
    OT

Maybe you are looking for

  • Stacked Canvas question in Forms [32 Bit] Version 10.1.2.3.0 (Production)

    Hi Friends, I am not sure if my explanation will suffice for resolution to this easy problem that is causing me so much grief. I have a form with one content canvas ROOT_CNV, One tab canvas TAB_CNV with two tab pages and One STACK Canvas Stack_CNV. A

  • Error (-50) Outlook Sync'ing

    I was excited about the prospect of Apple creating a tool to sync Outlook contacts and calendars! I am receiving the error 'The iPod "Paul's iPod" cannot be updated. An unknown error occurred (-50).' When I try to uncheck the "Sychronize contacts" op

  • Using of attendance types.

    Hi, my company wants to use CATS and currently we have identified a list of activites which are required and majority of these activties are shared by different departments. Since activies are shared, can we create activity type based on department a

  • Canon file RAW CR2 and mac book pro not working ...?

    Canon file RAW CR2 and mac book pro not working ...? I'm using Digital photo professional software and i'm using canon camer 5D mark2 and mac book pro 13inch last version i'm trying to shooting directly by Digital photo professional, Remote shooting

  • Lost Set up Internet emal Icon

    I upgrade my software on t-mobile site to new version(5.?) - didn't like it Downloaded 4.2.2 off site and re-installed (downgraded) Everything works Except I no longer have a SET UP INTERNET EMAIL Icon T-Mobile has re-sent my service book numerous ti