How to store multilingual strings in postgresql?
This question isn't such as:
- Best way to store images in PostgreSQL [duplicate]
- How to design a database schema for storing text in multiple languages?
- Best practise for storing multilingual strings
I'm want insert strings with japanese, korean, chineses (simplified and traditional) and russian characters in one table.
INSERT INTO articles (title, text, date)
VALUES ('article title', 'Long text with chinese (龙), korean(울), japanese(形) and russian(ЯД) characters', '2017-02-16');
How to create Database in Postgresql with right LC_COLLATE and LC_CTYPE for multilingual strings in tables?
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'zh_CN.UTF-8'
LC_CTYPE = 'zh_CN.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'zh_TW.UTF-8'
LC_CTYPE = 'zh_TW.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ko_KR.UTF-8'
LC_CTYPE = 'ko_KR.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ja_JP.UTF-8'
LC_CTYPE = 'ja_JP.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ru_RU.UTF-8'
LC_CTYPE = 'ru_RU.UTF-8'
TEMPLATE = template0;
What is best practice for store multilingual text in postgresql?