sffutf8

sffutf8

    sffutf8 20ac    gives the result 
    2utf8.input.e.dec.8364.hex.20ac.oct.020254 -> output.3.bytes ?.226.e2.342
?.130.82.202 ?.172.ac.254

Format a string into/out of utf8
    -2 : convert the input number TO utf8 (default)
    -X : convert the input string FROM utf8
        sffutf8 -X -o \\302\\243
        normally double the backslash as it gets parsed twice

    -d : input is decimal   default is hex
    -h : input is hex   default is hex
    -o : input is octal default is hex
    -p : input is printable default is hex

    -D : output in decimal  default is all
    -H : output in hex  default is all
    -O : output in octal    default is all
    -P : output as printable default is all

    -A : output ALL varieties

    -n : do NOT add a NewLine at the end
    -v : version and exit

Normally we add a NewLine After the string, use the '-n' input switch to strip.

Note that if you use 'echo' pls remember to NOT add a NL at the end.

Only other input parameter is -v : version and exit

To give options, type just 'sffutf8' on its own

Version Control
;000g   23mar05 chris original version ;f redid -2 ;g minors

(copyright) 2017 and previous years FingerPost Ltd.