1
6
错误信息非常清楚:您的
您可以在应用程序中转换它,也可以更改PostgreSQL连接以匹配要插入的编码(从而使PostgreSQL能够为您进行转换)。你可以通过执行
嗯! |
2
1
我认为你可以尝试使用RubyGemRchardet,这可能是一个更好的解决方案。示例代码:
以下是一些相关链接: https://github.com/jmhodges/rchardet http://www.meeho.net/blog/2010/03/ruby-how-to-detect-the-encoding-of-a-string/ |
tggtsed · PostgreSQL从平均值中排除值 1 年前 |
Dawid · 为什么我不能在子查询中使用表别名? 1 年前 |
CraZyCoDer · 在PostgreSQL中锁定潜在事务 2 年前 |
ranebec · 计数时如何返回0而不是null? 2 年前 |
Flo · 分组依据中的SQL大小写 2 年前 |