V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
deasty
V2EX  ›  数据库

postgresql 转码问题

  •  
  •   deasty · Jul 11, 2021 via iPhone · 2041 views
    This topic created in 1763 days ago, the information mentioned may be changed or developed.
    原始数据里的汉字被 Excel 用 code 函数编码然后通过 csv 格式导入到 postgresql,现在想在 postgresql 转码回汉字,应该用哪个函数或者什么方法才能实现转码?
    2 replies    2021-07-12 08:10:07 +08:00
    zbinlin
        1
    zbinlin  
       Jul 11, 2021
    什么字符编码的?
    postgresql 里有 convert_from 、convert 可以转码的
    deasty
        2
    deasty  
    OP
       Jul 12, 2021 via iPhone
    @zbinlin 好像是 GBK
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.