Encoding & in XMLdata

I'm using the Adobe live Cycle to get some information in a plain PDF.
My problem is when the text contains the & character, it seems that the web service cannot read this kind of characters from the XMLdata.
I tried to change the encoding to Windows-1252, but no result.
I also tried to put the text with & inside CDATA instruction,
<![CDATA[aa&bb]]> but it gives another error.
I also tried to replace the & character with & but it didnt work either.
What can I do?? Does someone know another solutions for text with strange characters??
Thanks,
Ana.

I take it you are hand-coding the XML (or using a simple program to
generate it? Did you try the standard HTML ampersand entity - &AMP;
(if you don't see it:
ampersand
A
M
P
semi-colon
Aandi Inston

Similar Messages

  • Parsing a UTF-8 encoded XML Blob object

    Hi,
    I am having a really strange problem, I am fetching a database BLOB object containing the XMLs and then parsing the XMLs. The XMLs are having some UTF-8 Encoded characters and when I am reading the XML from the BLOB, these characters lose their encoding, I had tried doing several things, but there is no means I am able to retain their UTF encoding. The characters causing real problem are mainly double qoutes, inverted commas, and apostrophe. I am attaching the piece of code below and you can see certain things I had ended up doing. What else can I try, I am using JAXP parser but I dont think that changing the parser may help because, here I am storing the XML file as I get from the database and on the very first stage it gets corrupted and I have to retain the UTF encoding. I tried to get the encoding info from the xml and it tells me cp1252 encoding, where did this come into picture and I couldn't try it retaining back to UTF -8
    Here in the temp.xml itself gets corrupted. I had spend some 3 days on this issue. Help needed!!!
    ResultSet rs = null;
        Statement stmt = null;
        Connection connection = null;
        InputStream inputStream = null;
        long cifElementId = -1;
        //Blob xmlData = null;
        BLOB xmlData=null;
        String xmlText = null;
        RubricBean rubricBean = null;
        ArrayList arrayBean = new ArrayList();
          rs = stmt.executeQuery(strQuery);
         // Iterate till result set has data
          while (rs.next()) {
            rubricBean = new RubricBean();
            cifElementId = rs.getLong("CIF_ELEMENT_ID");
                    // get xml data which is in Blob format
            xmlData = (oracle.sql.BLOB)rs.getBlob("XML");
            // Read Input stream from blob data
             inputStream =(InputStream)xmlData.getBinaryStream(); 
            // Reading the inputstream of data into an array of bytes.
            byte[] bytes = new byte[(int)xmlData.length()];
             inputStream.read(bytes);  
           // Get the String object from byte array
             xmlText = new String(bytes);
           // xmlText=new String(szTemp.getBytes("UTF-8"));
            //xmlText = convertToUTF(xmlText);
            File file = new File("C:\\temp.xml");
            file.createNewFile();
            // Write to temp file
            java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter(file));
            out.write(xmlText);
            out.close();

    What the code you posted is doing:
    // Read Input stream from blob data
    inputStream =(InputStream)xmlData.getBinaryStream();Here you have a stream containing binary octets which encode some text in UTF-8.
    // Reading the inputstream of data into an
    into an array of bytes.
    byte[] bytes = new byte[(int)xmlData.length()];
    inputStream.read(bytes);Here you are reading between zero and xmlData.length() octets into a byte array. read(bytes[]) returns the number of bytes read, which may be less than the size of the array, and you don't check it.
    xmlText = new String(bytes);Here you are creating a string with the data in the byte array, using the platform's default character encoding.
    Since you mention cp1252, I'm guessing your platform is windows
    // xmlText=new new String(szTemp.getBytes("UTF-8"));I don't know what szTemp is, but xmlText = new String(bytes, "UTF-8"); would create a string from the UTF-8 encoded characters; but you don't need to create a string here anyway.
    //xmlText = convertToUTF(xmlText);
    File file = new File("C:\\temp.xml");
    file.createNewFile();
    // Write to temp file
    java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter(file));This creates a Writer to write to the file using the platform's default character encoding, ie cp1252.
    out.write(xmlText);This writes the string to out using cp1252.
    So you have created a string treating UTF-8 as cp1252, then written that string to a file as cp1252, which is to be read as UTF-8. So it gets mis-decoded twice.
    As the data is already UTF-8 encoded, and you want the output, just write the binary data to the output file without trying to convert it to a string and then back again:// not tested, as I don't have your Oracle classes
    final InputStream inputStream = new BufferedInputStream((InputStream)xmlData.getBinaryStream());
    final int length = xmlData.length();
    final int BUFFER_SIZE = 1024;                  // these two can be
    final byte[] buffer = new byte[BUFFER_SIZE];   // allocated outside the method
    final OutputStream out = new BufferedOutputStream(new FileOutputStream(file));
    for (int count = 0; count < length; ) {
       final int bytesRead = inputStream.read(buffer, 0, Math.min(BUFFER_SIZE, (length - count));
       out.write(buffer, 0, bytesRead);
       count += bytesRead;
    }Pete

  • XSLT European Language Support in XMLData class (part of Oracle XML kit)

    My code in JSP (with JDev) looks like this:
    <jsp:useBean id="XSLTProcesseur" class="oracle.jbo.html.databeans.XmlData" scope="request">
    <%
    String sImageBase = (String)session.getValue("ImageBase");
    XSLTProcesseur.initialize(application, session , request, response, out, "bilanmetastatique_BilanModule.MasterBilanMetView");
    XSLTProcesseur.setReleaseApplicationResources(true);
    XSLTProcesseur.setStylesheet(sImageBase + "/BilanMeMasterJSP.xsl");
    XSLTProcesseur.render();
    %>
    </jsp:useBean>
    In the xsl file, BilanMeMasterJSP.xsl, I use French characters and got error messages (exceptions) out of XMLData class.
    Running the same stylesheet with Stylus Editor from Object Design work fine! (IBM XSL Editor works too)
    Any help appreciated, thanks.
    null

    Does your stylesheet use:
    <xsl:output encoding="xxx"/>
    to specify a proper encoding for the
    characters you're trying to use?

  • Adobe media encoder error in photoshop

    Hi everyone!This morning i have tried to render a video timelapse in photoshop but it showed to me an error which says:''Could not complete the render video command because of a problem with Adobe Media Encoder''.Could anyone tell me how can i fix this error?

    Nobody can tell you anything without proper system info or other technical details like exact versions, render settings, details about the source files and so on.
    Mylenium

  • Filename in Media Encoder CC

    Hello there ;-)
    In After Effect CC u can render picture sequences using a filname like: "Project_[#####].jpg". The [#####] is replaced by the framenumber when rendering. When i render a picture sequenc in Media Encoder CC i Don´t have that oportunity. It allways starts with a Number like 000001. My Question - is it possible to change that in the encoder? So that i have the Frame number in the filename like in After Effect CC? If yes - how? I haven´t find anything!
    THANX for your help!

    I have this issue too. It makes After effects impossible to use with media encoder.  What we want is the actual frame number from After effects
    Example
    I have a 5000 frame AE export.
    I can export the lot from AME
    Render0000.png - Render5000.png
    Client makes a change to Frames 4500-5000
    Try and render Work area to AME
    Result = Render0001.png -  Render0499.png
    The only way to keep file numbers is to use AE's render Queue which seem to be way slower than AME?

  • Conversion of XML file from ANSI to UTF-8 encoding in SAP 4.6C

    Hi All,
      Im working on SAP 4.6C version.I have generated a XML file from my custom report.It is downloading in ANSI format.But i need to download this into UTF-8 format.So can anyone please let me know how to do this?
    Is this possible in 4.6C version?
    Thanks in Advance,
    Aruna A N

    Hello
    It is possible in 4.6.
    Try this code:
    REPORT Z_TEST_XML_DOWN .
    data:
      lp_ixml type ref to if_ixml,
      lp_xdoc type ref to if_ixml_document,
      lp_sfac type ref to if_ixml_stream_factory,
      lp_ostr type ref to if_ixml_ostream,
      lp_rend type ref to if_ixml_renderer,
      lp_enco type ref to if_ixml_encoding.
    data:
      lp_root type ref to if_ixml_element,
      lp_coll type ref to if_ixml_element,
      lp_elem type ref to if_ixml_element.
    class cl_ixml definition load.
    data:
    udat like lfa1,
    s type string.
    select single * from lfa1 into udat where lifnr = '0000000001'. " <- set here real number
    *** create xml
    lp_ixml = cl_ixml=>create( ).
    lp_xdoc = lp_ixml->create_document( ).
    lp_root = lp_xdoc->create_simple_element( name = 'Node'
                                              parent = lp_xdoc ).
    s = udat-land1.
    call method lp_root->set_attribute( name = 'country_name'
                                        value = s ).
    s = udat-name1.
    call method lp_root->set_attribute( name = 'vendor_name'
                                        value = s ).
    s = udat-ort01.
    call method lp_root->set_attribute( name = 'city_name'
                                        value = s ).
    *** render xml
    types: begin of xml_tab_line,
             line(256) type x,
           end of xml_tab_line.
    types: xtab type table of xml_tab_line.
    data: t_xml type xtab,
          size type i,
          rc type i.
    lp_sfac = lp_ixml->create_stream_factory( ).
    lp_ostr = lp_sfac->create_ostream_itable( table = t_xml ).
    lp_enco = lp_ixml->create_encoding( character_set = 'utf-8'
                                   byte_order = if_ixml_encoding=>co_none ).
    call method lp_ostr->set_encoding( encoding = lp_enco ).
    lp_rend = lp_ixml->create_renderer( ostream = lp_ostr
                                        document = lp_xdoc ).
    rc = lp_rend->render( ).
    *** export to file
    size = lp_ostr->get_num_written_raw( ).
    call function 'WS_DOWNLOAD'
      exporting
        bin_filesize = size
        filename = 'c:\sapxml_test.xml'
        filetype = 'BIN'
      tables
        data_tab = t_xml
      exceptions
        others = 1.
    It is just simple example.

  • Media Encoder CC mpeg2 Question

    Basically what the title says. Where exactly is the option to format a video into an mpeg2 file? I've been Googling this to death. I know I've seen some people say they had it, then it disappeared. But I literally just downloaded Media Encoder and its nowhere to be found. Even under the DVD and Blue-ray section, the only options are for Blue-ray. I need to burn a wedding video onto a DVD. Is there something special you have to do to get this done? Are there limits on the free trial version that don't allow mpeg2 downloads? Help!

    Are you using AME CC 2014?  MPEG2 is included in AME under more strict license than other formats and is only activated only if you have Premiere Pro CC 2014, AfterEffects CC 2014 or Prelude CC 2014.  If you are using them under a free trial, MPEG2 becomes unavailable after a trial period expires.  After a trial has been expired, AME CC 2014 can be used extra 30 more days, but without MPEG2. 
    If you already used up a trial period, you can either 1) install one of three apps I mentioned earlier that you haven't installed before and activate it as a trial or 2) purchase a subscription for Creative Cloud.  #1 option allows you to use MPEG2 30 more days.  With #2 option, you can use MPEG2 as long as you keep your subscription active.  I hope this helps.

  • Media Encoder CC

    I have the Adobe Creative Cloud on the new Mac Pro. Now I can no start the Media Encoder. Am I the only one who has the problem?
    Can anyone help me?

    Hi Media Encoder CC,
    Welcome to the Forums.
    Please follow the KB Article provided below and check whether it resolves your issue or not.
    http://helpx.adobe.com/creative-cloud/kb/ame-premiere-crash-launch-export.html
    Regards,
    Vinay

  • Media encoder cc export issue

    i got a user that have issue export with media encoder
    when she encode she get this error
    any idea
    Thanks

    Any one ?

  • Media Encoder CC won't launch

    I've been succesfully working with media encoder for sometime now but it won't start for some reason. Using Mac OS 10.6.8, icore 7 proc, 16gb RAM, Encoder CC 6.0.2 what's causing this?

    Thanks, It started working after I logged into my Adobe account. Curious if that had anything to do with it. I also tried a few options (similar to this) I found in the forum which didn't help until I restarted. Not sure which one did it but it's all good now. Thanks!
    cid:E05335EC-C91D-4503-A609-511A1CD6F2EE
    Randy Cates | Video/Motion Graphics
    800.440.1088
    14287 N. 87th St. Suite 220
    Scottsdale, AZ 85260
    Fax: (480) 949-2427
    cid:81ED8132-3DE8-4E8D-973C-64CDC5BC8985<http://www.facebook.com/shurwest>  cid:A3749390-E4AB-4976-BE58-B02192E9077F <http://www.twitter.com/shurwest>   www.shurwest.com<http://www.shurwest.com/

  • Media Encoder CC 14 renders with black frame at the end

    Hello,
    my Media Encoder running on Mac Yosemite makes a black frame at the end of h264 clips...
    How can i fix this?
    Thanks

    I just figured out - it might be a quicktime viewer problem...

  • Media Encoder CC  won't render Magic Bullet Denoiser II

    Hello there,
    i've got the following Problem: I am having Premiere CC and used the Red Giant Plug-In Denoiser II on my last project, when i import this project to the Media Encoder and select Quicktime for output, the Media Encoder won't render the clip with this Plug-In. i always get the original files out, without the denoiser. Original footage from in premiere is 2,5k CinemaDNG RAW from the Black Magic Cinema Camera.
    thx

    I feel like there was a recent update to the RG plugins (inside of the last 30 or so days.) Are they up to date?

  • Media Encoder CC // Red Giant Denoiser II

    Hello there,
    i've got the following Problem: I am having Premiere CC and used the Red Giant Plug-In Denoiser II on my last project, when i import this project to the Media Encoder and select Quicktime for output, the Media Encoder won't render the clip with this Plug-In. i always get the original files out, without the denoiser.
    thx

    no windows, footage is cinemaDNG 2,5k RAW from Blackmagic Cinema Camera.

  • Media Encoder CC - Bug or just finicky?

    I'm confused about Media Encoder, and hoping someone can help.
    I have a short film that's primarily 4K ProRes augmented with some "flashbacks" that are 1920 by 1080 h264 files.  All edits beautifully in my 4K ProRes timeline.
    I have some Magic Bullet B&W corrections on the 1080 footage.  On the 4K footage, I just have an overall grade in an Adjustment Layer (for now).  I can play in Software Mode (CUDA won't work on my Retina Mac - separate thread!) at 1/4 resolution.  The 4K stuff looks great, the 1080 pretty bad.
    I've been outputting by matching sequence settings.  The file is TITANIC, but looks great.  I use that file to make various smaller files in APPLE COMPRESSOR.  I find it better and more flexible (especially with cropping for 2.35, etc.)  What can I say.  All in all, the workflow works for me.
    So here's the problem.  Today I wanted to use In and Out to export a small section for music review with a colleague.  No need to have a huge file, I just used Media Encoder in a Vimeo SD mode. 
    In the first attempt, the 1080 stuff oddly looked terrible.  Just as it does when viewed at 1/4 resolution.  To make sure everything was okay, I outputted that section at Matched Sequence settings.  All good - the 1080 stuff had the Magic Bullet B&W look working great.
    Then I tried again with the Vimeo SD setting.  Only this time I checked Render at Maximum Resolution.  Took FOREVER, but all good again.  The 1080 stuff was fine.
    Next I renendered "in to out" in my sequence (I hadn't done so previously - I was working "red line").  Output without checking Max Render Quality.  Back to the horrible 1080 stuff.
    Finally, I chose "use previews", but not max render.  All good again.
    So, at last a question.  Does this make sense?  I never before had to use either Maximum Render OR Use Previews to get acceptable quality with "device" settings.  Is this a bug?  Or related to my disparate picture sizes?  Or something else?  Thank you all!

    [Moved to AME forum.]
    I can see where this would be expected behavior.

  • Media Encoder CC Encoding Failure

    I have never had any problems with Media Encoder on my system, but since ugrading from CS6 to CC suddenly the Media Encoder fails whenever I use the QUEUE rather than EXPORT on the Export Settings screen in Adobe Premiere Pro CC. 
    When I click the Failure link for more information, it just pulls up the log which tells me that Encoding Failed.  Has anyone else experienced this?  Any ideas for how to resolve it?
    It's not a huge problem because I can always encode each video one at a time by clicking export, but being able to batch process a bunch of videos at a time helps the workflow.  THANKS!

    Yes, AME queue is a problem.  I have a 28 minute weekly broadcast for a client that must be encoded in 6 different formats for TV Broadcast, mpeg2 DVD, vimeo, mp3, h.264 for vimeo, etc.  If I attempt to encode all 6 in the queue I will have some success and also failure.   If I queue several videos that all require mpeg2 (though with each requiring several different specs, i.e., upper field vs. lower field, mpeg2 dvd, mpeg2 HD, etc.) it will complete the task.  Yet if I add h.264 to the mix all encodes will fail.  I can encode h.264 by itself with no problems.  So yes, you are not alone.  Not sure what the solution is.  In CS6 one could queue all of these formats and walk away.  Can Adobe acknowledge these issues and then propose a solution?

Maybe you are looking for

  • Safari will not close multiple windows

    In the last month my safari will not close multiple pages with the red button at the top of the screen. When viewing several pages in order to close out the window I have to totally close out of Safari. Please help... this is really a pain and very t

  • [SOLVED] SATA not working on Macbook Pro 7.1, (kernel bug 15923)

    I ran into this bug while trying to install Arch as a single-os install on my new  13'' Macbook Pro 7.1:   https://bugzilla.kernel.org/show_bug.cgi?id=15923 It appears there is a problem with the current kernel and the MCP89 chipset so SATA is not re

  • ITunes won't start. Can't add music.

    I recently had a virus on my computer and it as been removed. I just got my computer back and tried to open itunes. When i click the icon a message comes up that says: "iPodService Module (32-bit) stopped working and was closed." And an iTunes messag

  • Upgrade to Tiger from Panther questions

    I checked some of the old (2007) questions that are similar to mine, but they don't exactly address my questions, because of the upgrade separation of the systems in question. So I'm entering a new question that might hopefully save me some trouble.

  • WRT54GX speed

    My wireless router WRT54GX with SRX ver 1.0 works properly, except for the wired situation. Wireless I get 100 % of the max speed. When I go to the wired situation I get 10% of that max speed. And when I bypass my router and wire direct to the modem