Skip to content

How to print an int8 field as a char in decoder.appendTo() method? #1087

@pcdv

Description

@pcdv

Hi,

Let's suppose a field can have values 'A', 'B', 'C' and is encoded as a int8, uint8 or char on the wire.

Even when setting semanticType="char", the string representation of the message always shows the ordinal value of the field, e.g. 65 instead of 'A'.

Have I missed anything? Otherwise, would it be a good addition to allow printing those fields as chars instead of byte / short?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions