I have made a database with utf8 encoding and some greek characters are not recognized in the values that I insert. I use this to create the database:
CREATE DATABASE greek WITH ENCODING 'UTF-8' LC_COLLATE='el_GR.utf8' LC_CTYPE='el_GR.utf8' TEMPLATE=template0;
I have this table:
CREATE TABLE IF NOT EXISTS products( id SERIAL PRIMARY KEY, name VARCHAR(50), category VARCHAR(50), subcategory VARCHAR(50), photo VARCHAR(100), UNIQUE (name));
And then with this insert I try to put in the datbase these values here is how it looks in the windows insert command command prompt:
INSERT INTO products VALUES (0,'ΚύκνοςΤομάτεςΑποφλΟλoκλ 400γρ','ee0022e7b1b34eb2b834ea334cda52e7','a02951b1c083449b9e7fab2fabd67198'), (1,'Elite ΦρυγανιέςΟλικήςΆλεσης 180γρ','ee0022e7b1b34eb2b834ea334cda52e7','a483dd538ecd4ce0bdbba36e99ab5eb1'), (2,'Trata ΣαρδέλαΛαδιού 100γρ','ee0022e7b1b34eb2b834ea334cda52e7','df10062ca2a04789bd43d18217008b5f'), (3,'ΜεβγάλΤυρίΗμισκλΜακεδ 420γρ','ee0022e7b1b34eb2b834ea334cda52e7','4c73d0eccd1e4dde8bb882e436a64ebb');
when I do the select query to see the values
select * from products;
What I get is these unrecognized characters:screenshot
What should I try so that all the characters are recognized inside the database?
I tried changing the encoding of the database to WIN1252 but it did not work.