Skip to content

relax UTF8 validation on generated clients #52

Open
@tianshu-orcl

Description

@tianshu-orcl

when source data contains invalid UTF8 character data, the client code will raise error due to Unicode decoding error such as

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 50555: invalid start byte

relax UTF8 validation can be done on the client. Each programming language has different approach. For example in python WebSocket client lib,

    from websocket import WebSocketApp

    ws = WebSocketApp(url,
              on_message=on_message,
              on_error=on_error,
              on_close=on_close,
              skip_utf8_validation=True)

Metadata

Metadata

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