xml encoding breaks

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phelim

    #1

    xml encoding breaks

    Hi.
    Im trying to form xml where the content is all unicode, but the xml
    seems to break at regular intervals, and will not see the content from
    that point on as
    unicode. It seems to add some extra characters onto the end of a node
    (which are usually garbage and a few characters long). After this
    point (which is always at the end of a particular node, the rest comes
    out as it would if it
    were not unicode.

    It may have something to do with the length of the xml I am forming,
    which is quite long.

    In the following example, the following few characters are added to
    the end of the option node..
    "˜{%!"

    <option number="1">&#x3 9D;&#x3B1;
    &#x3C0;&#x3C1;& #x3BF;&#x3BB;&# x3AC;&#x3B2;&#x 3B5;&#x3B9;
    &#x3BC;&#x3AE;& #x3C0;&#x3C9;&# x3C2; &#x3C4;&#x3B 1;
    &#x3BC;&#x3B7;& #x3C7;&#x3B1;&# x3BD;&#x3AE;&#x 3BC;&#x3B1;&#x3 C4;&#x3B1;
    &#x3C3;&#x3B2;& #x3AE;&#x3C3;&# x3BF;&#x3C5;&#x 3BD;
    &#x3BB;&#x3CC;& #x3B3;&#x3C9;
    &#x3C5;&#x3C8;& #x3B7;&#x3BB;&# x3CE;&#x3BD;
    &#x3C0;&#x3B9;& #x3AD;&#x3C3;&# x3B5;&#x3C9;&#x 3C2; &#x3C3;&#x3B 5;
    &#x3C0;&#x3B5;& #x3C1;&#x3B9;&# x3C0;&#x3C4;&#x 3CE;&#x3C3;&#x3 B5;&#x3B9;&#x3C 2;
    &#x3C0;&#x3BF;& #x3C5; &#x3B7;
    &#x3B8;&#x3B5;& #x3C1;&#x3BC;&# x3BF;&#x3BA;&#x 3C1;&#x3B1;&#x3 C3;&#x3AF;&#x3B 1;
    &#x3C0;&#x3B5;& #x3C1;&#x3B9;&# x3B2;&#x3AC;&#x 3BB;&#x3BB;&#x3 BF;&#x3BD;&#x3C 4;&#x3BF;&#x3C2 ;
    &#x3B5;&#x3AF;& #x3BD;&#x3B1;&# x3B9;
    &#x3C5;&#x3C8;& #x3B7;&#x3BB;&# x3AE; &#x3BA;&#x3B1;& #x3B9;
    &#x3C4;&#x3B 1; &#x3BC;&#x3B7;& #x3C7;&#x3B1;&# x3BD;&#x3AE;&#x 3BC;&#x3B1;&#x3 C4;&#x3B1;
    &#x380;˜{%!</option><option number="2">Î?α ανακαλÏ?Ï ?ει
    μηÏ?ανήμΠ±Ï?α Ï?οÏ? Ï?Ï?Ï?Ï?ν έÏ?οÏ?ν κάÏ?οια
    διαÏ?Ï?οή αÏ?Ï? Ï?ην Ï?ελεÏ?Ï?αΠ¯Î± Ï?οÏ?ά Ï?οÏ?
    έγινε έλεγÏ?οÏ? και Ï?α οÏ?οία μÏ?οÏ?εί να
    Ï?Ï?ÎµÎ¹Î¬Î¶ÎµÏ ?αι να εÏ?ιÏ?Î</option>
  • Julian F. Reschke

    #2
    Re: xml encoding breaks

    "Phelim" <phelim@bluetre e.ie> schrieb im Newsbeitrag
    news:585c1915.0 310080202.7662e bfa@posting.goo gle.com...[color=blue]
    > Hi.
    > Im trying to form xml where the content is all unicode, but the xml
    > seems to break at regular intervals, and will not see the content from
    > that point on as
    > unicode. It seems to add some extra characters onto the end of a node
    > (which are usually garbage and a few characters long). After this
    > point (which is always at the end of a particular node, the rest comes
    > out as it would if it
    > were not unicode.
    >
    > It may have something to do with the length of the xml I am forming,
    > which is quite long.
    >
    > ...[/color]

    How about also telling us *how* you're producing the XML? Otherwise I don't
    see how anybody is going to be able to help you.




    Comment

    • phelim McConigly

      #3
      Re: xml encoding breaks



      Im forming the xml in php code.. the content is taken from a mysql
      database. It is in unicode format in the database.

      It seems to add on the last few characters, i.e. they are not part of
      the unicode taken from the database.

      After these characters are added (which is not always, but always in the
      same few places), the encoding breaks.

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      • Julian F. Reschke

        #4
        Re: xml encoding breaks

        "phelim McConigly" <phelim@bluetre e.ie> schrieb im Newsbeitrag
        news:3f8411c9$0 $200$75868355@n ews.frii.net...[color=blue]
        >
        >
        > Im forming the xml in php code.. the content is taken from a mysql
        > database. It is in unicode format in the database.
        >
        > It seems to add on the last few characters, i.e. they are not part of
        > the unicode taken from the database.
        >
        > After these characters are added (which is not always, but always in the
        > same few places), the encoding breaks.[/color]

        In which case either your database is broken, or PHP, or your code. It
        doesn't really seem to be an XML question, though.


        Comment

        Working...