• SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    1 month 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
    21
    ·
    1 month 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.@aussie.zone
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      1 month 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
    ·
    1 month ago

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

  • MinekPo1 [it/she]@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 month ago

    depends on your format ? if the format is binary anyway or has binary blobs (ie it needs a program that is able to handle octets outside the printable range) and using those characters does not introduce any ambiguities with the format then go for it . ANSI and related control codes all start with 0x1B