Hi! It can be read from the DETAILS file of Gnupg the following : ,---- | Format of the "--status-fd" output | ================================== | Every line is prefixed with "[GNUPG:] ", followed by a keyword with | the type of the status line and a some arguments depending on the | type (maybe none)[...] | The username is the primary one encoded in UTF-8 `---- To be consistent with the rest of gpg(1)'s output, it would be good to ask Gnupg to output everything in UTF-8 and treat the buffer as such. Here's a proposal :