将\ u0000 \ u0000转换为可读的雪花
我有一个数据文件,其中包含\ u0000 \ u0000,\ u0000 \ u0018和\ u0000 \ u0000 \ u001aq {的Unicode值。如何使用雪花将其转换为可读格式?
I have a data file that contains unicode values of \u0000\u0000, \u0000\u0018 and \u0000\u001aq{ in one column. How do I convert this to human readable format using snowflake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
雪花将自动解码Unicode逃生序列。当然,
\ u0000
是无效字符串的Unicode逃生序列,因此它不可打印。\ u0018
是“取消”的Unicode逃生序列,因此它也不可打印。这是一个具有可打印Unicode逃生序列的示例:
如果值已经以某种方式降落在田野中,则可以使用JavaScript UDF转换它们:
Snowflake will automatically decode Unicode escape sequences. Of course,
\u0000
is the Unicode escape sequence for a null string, so it's not printable.\u0018
is the Unicode escape sequence for "Cancel", so it's also not printable.Here's an example with a printable Unicode escape sequence:
If the values have already somehow landed in the fields still escaped, you can use a Javascript UDF to convert them: