使用decode函数解码ByteA数据。 运行成功,但一些非英语字符(例如“ä”)显示为“�”
以下代码需要更改的内容
Select replace(replace(encode(cont_json,'escape'),E'\\000',''),'\\','\')
From dbo.cont_encode where cont_ID=2
尝试使用convert_from(decode('column', 'base64'), 'utf-8') 和其他解压缩技术但没有运气
这完全取决于您用于这些数据的编码。如果您说,“嗯,编码,什么?”,我们假设您使用的是 Windows 并使用它们的单字节编码。那么答案就是
SELECT convert_from(cont_json, 'win1252')
FROM ... WHERE ...