V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
deasty
V2EX  ›  数据库

postgresql 转码问题

  •  
  •   deasty · 2021-07-11 09:11:25 +08:00 via iPhone · 1194 次点击
    这是一个创建于 991 天前的主题,其中的信息可能已经有所发展或是发生改变。
    原始数据里的汉字被 Excel 用 code 函数编码然后通过 csv 格式导入到 postgresql,现在想在 postgresql 转码回汉字,应该用哪个函数或者什么方法才能实现转码?
    2 条回复    2021-07-12 08:10:07 +08:00
    zbinlin
        1
    zbinlin  
       2021-07-11 12:39:29 +08:00
    什么字符编码的?
    postgresql 里有 convert_from 、convert 可以转码的
    deasty
        2
    deasty  
    OP
       2021-07-12 08:10:07 +08:00 via iPhone
    @zbinlin 好像是 GBK
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1037 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:37 · PVG 06:37 · LAX 15:37 · JFK 18:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.