fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpcurl support for encoding formats other than UTF-8

ritwik12 opened this issue · comments

Hey,

Need to confirm if grpcurl can support encoding/decoding of formats such as utf-8, utf-16, utf-16-le, utf-16-be

Is there any restriction in gprcurl which might be a blocker in supporting those functionalities?

@ritwik12, instead of adding features to grpcurl for text format processing, I think it would be better to instead use iconv to translate to utf8 and then pipe that to grpcurl.

@jhump thanks for the suggestion, wanted to know if currently grpcurl supports encoding/decoding of other text formats or not?

@ritwik12, it does not. Under the hood, this uses Go's encoding/json package, which requires that the incoming text be UTF8-encopded. More context here.

@jhump Thanks for clarifying