Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^15: Native newline encoding

by BrowserUk (Pope)
on May 28, 2012 at 21:53 UTC ( #972886=note: print w/ replies, xml ) Need Help??


in reply to Re^14: Native newline encoding
in thread Native newline encoding

unicode is just binary.

And yet; "Extensible Markup Language (XML) is a simple, very flexible text format" ...

that contains [Characters: A parsed entity contains text(*), a sequence of characters, which may represent markup or character data.] [Definition: A character is an atomic unit of text as specified by ISO/IEC 10646:2000 [ISO/IEC 10646]. Legal characters are tab, carriage return, line feed, and the legal characters of Unicode and ISO/IEC 10646.

(*)Their emphasis, not mine.

And when ftping XML documents, it is normal to do so in using the ftp ascii mode so that the embedded newlines are handled correctly for cross-platform transfers.

, there's no point in continuing. Truly

There was no point in your starting this either, but it didn't stop you.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?


Comment on Re^15: Native newline encoding
Re^16: Native newline encoding
by sauoq (Abbot) on May 29, 2012 at 01:23 UTC
    And when ftping XML documents, it is normal to do so in using the ftp ascii mode so that the embedded newlines are handled correctly for cross-platform transfers.

    Instead, you should transfer in binary and then just choose an editor that can handle the encoding properly for you.

    hth

    -sauoq
    "My two cents aren't worth a dime.";

      Should!? Edicts!

      Binary!? But its exactly what ascii mode was designed for.

      An editor!? Not much good for automated processing.

      hth. Not so much.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        Binary!? But its exactly what ascii mode was designed for.

        Errr... wrong. And badly so. You might look at how you just referred to the mode yourself. Congrats on not using ambiguous words like "text."

        An editor!? Not much good for automated processing.

        Use tools that are encoding aware, if you prefer a more general statement. But then, most tools for processing XML are... the problems usually arise when someone opens an XML file in an editor.

        The point is: don't use FTP to to transfer XML files in ASCII mode as they may or not be ASCII encoded.

        -sauoq
        "My two cents aren't worth a dime.";
Re^16: Native newline encoding
by ikegami (Pope) on May 30, 2012 at 00:01 UTC

        Well said!

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://972886]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (7)
    As of 2014-12-29 13:35 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (188 votes), past polls