• SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    2 days ago

    1E and 1F were actually originally intended to be used as record and unit separators, respectively, so that’s actually not a bad idea. The description for those fields in the article you linked even mentions that they’re suited for use as field delimiters.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    20
    ·
    2 days ago

    Generally a bad idea to use in-band signalling like that. They won’t do anything weird but consider what happens if the actual data contains them.

    • Dave.
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      2 days ago

      consider what happens if the actual data contains them.

      Then you’d escape them by using another character in front. But if their data format is ASCII text or is guaranteed not to have characters below ASCII 32 then using ASCII delimiters is fine.

  • bamboo@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    2 days ago

    Depends on if you want your data format to be strict ascii. If you don’t care, then sure, why not?