Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

UnicodeDecodeError with non-ASCII characters in message definition #94

Closed
@moooeeeep

Description

@moooeeeep

I have custom message definitions that contain UTF-8 encoded characters in the comments. When I try to filter topics from bagfiles that contain these messages, it fails with UnicodeDecodeError.

I already described it here:

And linked to a related entry in the ROS Q&A:

On my machine I could work around this by removing the call to .encode() in the line highlighted in the Traceback:

I don't know what other side effects this may produce (maybe with other file encodings of the message definition?), but so far it seems to work...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions