#include "yql_codec_results.h" #include #include namespace NYql { namespace NResult { constexpr TStringBuf TYsonResultWriter::VoidString; void TYsonResultWriter::OnStringScalar(TStringBuf value) { if (!IsUtf8(value)) { TString encoded = Base64Encode(value); Writer.OnBeginList(); Writer.OnListItem(); Writer.OnStringScalar(TStringBuf(encoded)); Writer.OnEndList(); } else { Writer.OnStringScalar(value); } } } }