deasty
V2EX  ›  数据库

postgresql 转码问题

  •  
  •   deasty · Jul 11, 2021 via iPhone · 2148 views
    This topic created in 1812 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   ·   851 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    ♥ Do have faith in what you're doing.