You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the only way to make header consistent with response encoding is to change header, as making response body UTF-8 will most likely double encode it.
Yes, charset=UTF-8 is technically wrong.
Strings in ClickHouse can contain arbitary binary data,
that is typically assumed to be UTF-8 for text strings,
but the data type and the server itself is charset-agnostic.
We definitely should not recode this binary data in neither way. If we will write C3 B8 instead of F8 we assume that our data is in latin1 encoding or something like that, that is even more wrong. (This is an antipattern that has very large widespread.)
But if we simply remove charset=UTF-8, then browsers will not display our data correctly if our strings are actually in UTF-8. And assumption about UTF-8 is a reasonable default.
Am I understanding right that
Content-Type: text/tab-separated-values; charset=UTF-8
means that response should haveC3 B8
instead ofF8
?The text was updated successfully, but these errors were encountered: