postgresql 转码问题

2021-07-11 09:11:25 +08:00
 deasty
原始数据里的汉字被 Excel 用 code 函数编码然后通过 csv 格式导入到 postgresql,现在想在 postgresql 转码回汉字,应该用哪个函数或者什么方法才能实现转码?
1223 次点击
所在节点    数据库
2 条回复
zbinlin
2021-07-11 12:39:29 +08:00
什么字符编码的?
postgresql 里有 convert_from 、convert 可以转码的
deasty
2021-07-12 08:10:07 +08:00
@zbinlin 好像是 GBK

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/788797

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX