Skip to content

how can i use protocol buffer's message toString() method for utf8 #1310

@Thinkfly

Description

@Thinkfly

I want to print protocol buffer's message log in console ,but i use toString() method and get below info.how can i use toString for utf8,thx.

logger.info(xx.toString());

result is:

message: "\347\231\276\345\272\246\345\234\260\345\233\276\350\260\203\347\224\250\345\244\261\350\264\245:\345\205\254\351\246\206,\351\224\231\350\257\257\347\240\201:1"

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