PSQL数据中的外语

发布于 2025-02-10 09:06:03 字数 152 浏览 1 评论 0原文

我对此进行了很多搜索,但没有找到任何东西 - 如何支持Postgres中的更多语言?

如果我将文本上传到希伯来语中,则将其存储在数据库中,为???????

如何使Postgres正确存储我的数据?

I searched a lot about this, but didn't find anything - How can I support more languages in postgres?

If I upload text in Hebrew, it stores it in the database as ??????.

How can I get Postgres to store my data correctly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恏ㄋ傷疤忘ㄋ疼 2025-02-17 09:06:03

PostgreSQL文本(和char)列是(本地)UTF8,可以存储Unicode代码点(字符)的任何组合。

如果您觉得????然后,您用于存储或重新删除数据的界面被错误配置。

我在Linux上使用PSQL进行了以下操作(因此,为Unicode配置了框即可)在Windows上这样做可能很难。

jasen=# create table presidents(name text);
CREATE TABLE
jasen=# insert into presidents values ('יצחק "בוז׳י" הרצוג');
INSERT 0 1
jasen=# select * from presidents;
        name        
--------------------
 יצחק "בוז׳י" הרצוג
(1 row)

Postgresql text (and char) columns are (natively) UTF8 and can store any combination of Unicode code points (characters).

If you are seening ????? then your interface used to store or retreive the data is misconfigured.

I did the following using psql on linux (so configured for unicode out of the box) it's probably harder to do this on windows.

jasen=# create table presidents(name text);
CREATE TABLE
jasen=# insert into presidents values ('יצחק "בוז׳י" הרצוג');
INSERT 0 1
jasen=# select * from presidents;
        name        
--------------------
 יצחק "בוז׳י" הרצוג
(1 row)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文