In what character format does CS5 Export HTML?

In what character format does indesign export html?
I am having trouble writting a parsing script because text that looks like:
of mutations to particular “hotspot” regions
becomes, to my chagrin,
of mutations to particular “hotspot� regions
Here is my java code that simulates this problem. Perhaps somebody knows which encoding to choose on Windows 7 pro x64?
    public static int CopyFile()
        try
        StringBuffer sb = null;
        String NullSpace = System.getProperty("line.separator");
        //Writer output = new BufferedWriter(new FileWriter(outputFile));
        BufferedWriter output = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile),"UTF-8"));
        String line;
        BufferedReader input =  new BufferedReader(new FileReader(myFile));
        while((line = input.readLine())!=null)
                sb = new StringBuffer();
                //Parsing happens
                sb.append(line);
                output.write(sb.toString()+NullSpace);
            return 0;
        catch (Exception e)
            return 1;

This particular line is the culprit (a case of What You Ask Is What You Get, really a rarity):
BufferedWriter output = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile),"UTF-8"));
-- and what you see is UTF-8 Encoding in action (rather, what you see with a non-UTF-8 aware text editor).
Check the Javascript Tools Guide, section "File- and Folder-supported encoding names", for an encoding that better suits your needs. Actually, you might want to check the generated HTML file -- UTF8 is a perfectly acceptable character encoding, but you have to tell your browser it is this one.
Alternatively, you can always check the string buffer text for any character codes (which are Unicodes) above 126 and replace these with the universal "&#xxx;" notation for out-of-range character codes.

Similar Messages

  • What Frame Rate does Catalyst export .SWF at?

    What Frame Rate does Catalyst export .SWF at?
    When I import a SWF file from Catalyst into another flash program, won't display never mind play, the error I get is that the frame rates don't match,
    therefore I need to know what  frame rate it exports at?

    If you have a SWF created by Catalyst, and you're using that SWF in something you're creating with Flash Builder or Flash Pro, then I think frame rate shouldn't matter. But maybe if you can give more details I could help more... Which flash program are you importing the SWF into, what commands or code are you using to do the import? Is there an error message or alert, if so what does it say? Any info you can provide will be helpful.
    Thanks

  • What video format does ipad 2 support?

    what video format does ipad 2 support?

    Pad2, the new iPad Supported Video Formats & Movie Formats
    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
     Cheers, Tom

  • What files formats does Itunes support

    what files formats does Itunes support???
    Been trying to load some anime into Itunes and they wont play on my Apple Tv, though they play on the computer. Why is that. I've got codes and all that other jazz. What gives....

    iTunes 11 can currently read, write and convert between MP3, AIFF, WAV, MPEG-4, AAC and Apple Lossless (.m4a).
    iTunes can also play any audio files that QuickTime can play (as well as some video formats), including Protected AAC files from the iTunes Store and Audible.com audio books. There is limited support for Vorbis and FLAC enclosed in an Ogg container (files using the Ogg container format are not natively supported) or Speex codecs with the Xiph QuickTime Components. Because tag editing and album art is done within iTunes and not QuickTime, these features will not work with these QuickTime components. As of Snow Leopard, iTunes 9 (Mac) will play HE-AAC / AAC+ internet streams. The latest version of iTunes (Win/Mac) supports importing audio CDs with the default iTunes standard file format of AAC at 256 kbit/s, but users can choose from 16 kbit/s to 320 kbit/s constant bit rates (CBR) in either AAC or MP3.[citation needed] Importing of audio CDs into MP3 or AAC formats can also be accomplished using variable bitrate (VBR) encoding.
    The Windows version of iTunes can automatically transcode DRM-free WMA (including version 9) files to other audio formats, but does not support playback of WMA files and will not transcode DRM protected WMA files. Telestream, Inc. provides free codecs for Mac users of QuickTime to enable playback of unprotected Windows Media files. These codecs are recommended by Microsoft.[34]
    In addition to importing CDs into the iTunes library, the user can also import non-Apple mp3 files from Amazon.com and other sources. This can be accomplished by either right clicking on the file, selecting open with, and then selecting iTunes or dragging the file into the open iTunes window. Alternatively, for Amazon.com mp3s, the Amazon MP3 Downloader application will automatically import the mp3 files into the iTunes library.

  • What video formats does Final Cut Express support?

    I have Final Cut Express HD 3.5. What video formats are compatible with this program? Also, what frame rate and aspect ratio do my videos have to be in for Express to accept the video file?

    Good of you to have read the manual. It helps us answer the question now that you've included that information.
    Your material must be converted to either DV, HDV or AIC (FCE Native formats). As you have discovered, while FCE will accept a number of non-standard or native formats, it will not play happily with them.
    DV and HDV are anamorphic formats. That is, they use non-square pixels. Standard DV is 720x480 (a 3:2 ratio) that FCE will do the conversion magic and have is display in a 4:3 format. Widescreen DV (aka 16:9) is ALSO 720x480 but the narrow dimension of the pixel is oriented the other way. When you tell FCE that the file is 16:9 anamorphic, it will do the magic and display the material properly. If you do not, it will display as though it is standard definition 4:3 and the people will be much skinnier but not taller.
    HDV is 1440x720 but displays in 16:9.
    AIC can be 1280x720 or 1980x1080.
    All other dimensions are not supported and you may have very unreliable results when using them. This very limited abiltiy to deal with more than a couple of formats was one of the main differentiation points between Express and Final Cut Pro. There were a great number of other differences but this was one of the biggest limitations for most consumer level users.
    If you want to edit a lot of non-standard,  non-native formats, look into Final Cut Pro X or Adobe Premiere Pro. Premiere Pro is within the editing paradigm of Final Cut Pro/Express. Final Cut Pro X has gone in a different direction which involves a new learning curve. Don't be fooled by the name, it is a very different animal than Express.
    x

  • What Video format does iPhone 5 play

    I'm trying to convert my 3gp. files to upload  to my iPhone 5. But for some reason it won't allow me to upload 3gp. files...
    So I need help figuring out if there is a certain program I can use to convert my file type or what I'm doing wrong to uplaod the videos to my phone

    Yeah, you need a video to iPhone converter to help you deal with it. It can convert all the videos to your iPhone.
    <Link Edited By Host>

  • What vid format does iPod support? How do I convert mine?

    What video format do movie files have to be in to be played on the iPod? I have avi, mov, mpg, and mpeg from my digital camera and I want to put them on my iPod. What do I do ... and how do I do it? I need an idiot's step by step guide. And if I don't have to pay for any new programs that would be a bonus ... surely I can use something already on my PowerBook?

    Try this link:
    http://www.cs.brandeis.edu/~ari/scripts/iTunesVideoWorkflow.html

  • What audio format does iTunes convert to and use?

    I got an ipod touch 4 a few months back, and it had to convert many of my songs to a different format. I need to put some songs on a rewritable cd/dvd to work in a cd player. I think it is an MP4 format. We tried it on a rewritable DVD-RW and a CD-R. Neither work. We tried on two different cd players. They act as if nothing was there. I need to know if Mp4 format is the problem and if iTunes can convert it to the right format. I can't find what format it converted my other songs to. Thanks for suggestions!

    iTunes does not convert the audio format unless you ask it to, either by ripping from an audio CD or using the conversion process.  (In iTunes for Windows it also does a conversion when a WMA file is added.) Other than that, it leaves files in the audio format they are in.
    When it does convert, it uses the format that you have selected in the "Import Preferences."  That value defaults to AAC, but also allows selection of MP3,  Apple Lossless, WAV, or AIFF.

  • What file format does ROME use?

    Will Adobe be publishing the format?
    I'd like to see the ability to integrate ROME into workflows of other apps...
    Harbs

    I saved my output to a PDF, but when I try to open it within Illustator CS5, all I get is a screen that says "Acrobat Reader 9.0" requred. Which is strange because I have Acrobat Reader 9.0.
    What exact steps did you take to be able to open your ROME file within Illustrator?
    Thanks!
    Thia

  • What clipboard format does InDesign use?

    I would like to copy data into InDesign from the clipboard. What is the format I should use and do you have sample data I can test?
    Here is my code so far that does not work:
    var data:String = "<paragraph>test</paragraph>";
    Clipboard.generalClipboard.setData("IDMS", data);

    This looks like a scripting question to me, so I've moved it to the scripting forum...

  • What Audio Formats Does iTunes Supports?

    is there a way to find out what formats iTunes supports?
    for example, does iTunes support OptimFROG Loseless or FLAC Loseless?
    thanks.

    iTunes uses Quicktime for audio playback and plays Apple Lossless, WAV, AIFF, MP3 and AAC files. If you want to play other formats, you generally have to convert them to a format iTunes supports (I use Apple Lossless myself). iTunes to FLAC is a group of Applescripts enabling FLAC file conversion in iTunes. For a guide to enabling OGG support in iTunes, see here. Other file conversion tools I use are Max and xAct.

  • What paste formats does Acrobat support?

    I have a software program that places formatted RTF and plain text data on the Windows clipboard.  When users of the program try to paste into Acrobat, they get text that has been stripped of all formatting.
    This used to work, and still works perfectly when pasting into Word.
    Has Acrobat eliminated support for RTF pasting?  Does it support an alternate formatted style?  Is there a way to select a clipboard format?
    Thanks!

    Thanks for replying.  I understand that this isn't the standard Acrobat use case, but nevertheless it's one I've seen repeated by hundreds of customers.  They have a PDF, and they want to annotate the PDF with the output of my program.  There are lots of ways to print to PDF and merge, etc., but those are all painful and the users just want something simple and familiar: copy/paste is what they want.
    If there's a better, simpler, way ... by all means, please tell me, since I know little about Acrobat.
    Actually, the ideal thing would be to paste some sort of embedded OLE object you could later click on and edit with my program, but that's probably another thread entirely, for another time.

  • Currency cell format does not export to excel doc

    Hi
    i am using new numbers on my macbook also on new OSX mavrics
    i have a invoice template that i have used for a good few years
    it has a fair amount of formulas and cell formats running
    the company i contract to uses windows based (office) system so i save the spreadsheet as an exel compatible file to send to them no problems
    untill now
    when i export to excel in ether .xls or .xlsx and open the document ether in numbers or on a windows pc on office 2007 all of the currency related cells are changed to 5 digits eg   -£8295.00 instead of £25 and the cell format show custom
    if i higlight the cell and change to curency the entrys chnge to the correct value
    has any one witnessed this ?
    it also is the same saving an excel sheet as a mac format CSV file and open that in numbers
    please help

    I am having exactly the same problem. Need to send invoices for work. Desperate for someone to help with a solution!!! thanks Stuart

  • What zip format does FLA files use, and is there a API for editing them?

    I really need to programmatically modify FLA file.  I understand that they are some kind of ZIP archive, but 7-zip cannot open them at all, and although WinRAR and Windows Explorer will open the archives, it will report that the archive is corrupt if you try to extract or update some files.  This makes it very difficult for me to edit existing FLA files.
    The XFL format is not a solution.
    I would be happy to have a way to modify one of the XML files in the FLA file, for example to perform batch modification of a referenced SWC component's path (since the file name was updated, and it's referenced by hundreds of FLA source documents).

    Hi,  Hope this information helps https://library.netapp.com/ecmdocs/ECMP1217281/html/GUID-1F9937B1-098D-4CBE-802E-2D97E1E2DB3D.html  Thanks

  • Exactly what DV format does Final Cut Capture?

    Hello, prepare to be amazed by my ignorance.
    I just about to buy Final Cut Pro for my G5 and my Intel MacBook.
    I have an old Canon XM1 (GL1 in the U.S.) and I noticed that I can capture direct from the camera in iMovie, without have to use the tape. I've been told that this is 'reduced bandwidth DV' and that only Final Cut Pro can capture raw DV.
    My questions are these, will I be able to capture raw DV from my Canon XM1 (GL1), direct to my machine, using Final Cut Pro?
    Also, if not, what is the quality of 'reduced bandwidth DV' compared to the compression of Mini DV? I know that iMovie direct captured 'RBW' DV has some audio issues but this isn't important as I am re-dubbing.
    Thanks for your time.
    Steven
    Intel MacBook Pro and G5   Mac OS X (10.4.9)  

    Hello again...
    DV is DV and is already compressed. It is compressed in the camera when you film, so the data that actually goes onto the tape is 'raw', compressed DV data.... and has a compression ratio of 5:1
    I think you've picked up the term 'compressed miniDV' from somewhere and let it get stuck in your brain.
    miniDV is the format, and like i said, it is compressed, but that is the nature of the technology.
    When you work in iMovie, it captures the DV in a different way, creating a different type of DV file than Final Cut... is has the .dv extension. Now, i'm not a regular user of iMovie, so won't mislead you, but i believe that the iMovie DV data is missing timecode info, and other little idiosyncracies. This might be where you are getting mixed up... it's not the DV format that is different, but the software you are bringing it in to that is different,
    Remember... iMovie and Final Cut Pro are very different applications...

Maybe you are looking for

  • My Macbook is 2 years old and I have yet to see the wonders of Apple...

    Hello. Maybe someone can help me with my troubles here. I bought my Macbook a year and a half ago, it will be two years in June. The first night I took it out of the box, something happened to the hard drive. I took it into the genius bar and they ha

  • Any solutions for a sleep/wake failure?

    Upon opening my MacBook after it has been sleeping, it freezes and then goes into a restart.  Once restarted I get a message that a sleep/wake failure has occurred.  I see from a quick google search this is something related some 2013 models of MacBo

  • I can no longer connect my iPad mini to a tv via an cdmi cable since the most recent update.

    I connect my iPad mini to a tv via a hdmi cable.  Since the most recent update for the iPad, it no longer connects to the tv with I plug in the cable.  The cable works for my iPhone and my husband's iPad (also an iPad mini).  Is there a setting that

  • 2620 prints word docs with missing text

    I just purchased an offcejet 2620 and it will not print out my word documents correctly. There are missing lines of text and cannot figure out why. I am using a MacBook Air OSX 10.9.4 I need help please!  Thanks

  • How to Display Query Variables in Text Titles?

    Hi experts, I have created a web template that has a query parameter screen and then displays the results in the form of charts and tables. My question is how do I display the parameters entered by the user in a chart title? For example if the user e