• 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
    21
    ·
    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.

  • 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?

  • MinekPo1 [it/she]@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 days 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