trez
trez

Reputation: 478

Customizing csv output in htsql

I would like to know if somebody knows a way to customize the csv output in htsql, and especially the delimiter and the encoding ?

I would like to avoid iterating over each result and find a way through configuration and/or extensions.

Thank in advance.

Anthony

Upvotes: 1

Views: 176

Answers (1)

Kirill Simonov
Kirill Simonov

Reputation: 256

If you want TAB as a delimiter, use tsv format (e.g. /query/:tsv instead of /query/:csv).

There is no way to specify the encoding other than UTF-8. You can reencode the output manually on the client.

Upvotes: 3

Related Questions