Just a quick one on VARCHAR2 vs NVARCHAR2.
My understanding was that on a UTF8 database international characters have to be stored in NVARCHAR2 (unicode).
I just got told that VARCHAR2 can also store international characters.
I tried this
CREATE TABLE NATIONAL_CHARACTERS
(
NON_UNICODE VARCHAR2(50),
ACTUAL_UNICODE NVARCHAR2(50)
);
INSERT INTO NATIONAL_CHARACTERS (NON_UNICODE, ACTUAL_UNICODE) VALUES ('le premier étage','le premier étage');
SELECT * FROM NATIONAL_CHARACTERS;
1 le premier étage le premier étage
wtf? é is not in the ascii character set.
Someone take me back to school.
Edit : I tried this also INSERT INTO NATIONAL_CHARACTERS (NON_UNICODE, ACTUAL_UNICODE) VALUES ('汉字/漢字','汉字/漢字');
SELECT * FROM NATIONAL_CHARACTERS;
1 le premier étage le premier étage
2 汉字/漢字 汉字/漢字
My understanding was that on a UTF8 database international characters have to be stored in NVARCHAR2 (unicode).
I just got told that VARCHAR2 can also store international characters.
I tried this
CREATE TABLE NATIONAL_CHARACTERS
(
NON_UNICODE VARCHAR2(50),
ACTUAL_UNICODE NVARCHAR2(50)
);
INSERT INTO NATIONAL_CHARACTERS (NON_UNICODE, ACTUAL_UNICODE) VALUES ('le premier étage','le premier étage');
SELECT * FROM NATIONAL_CHARACTERS;
1 le premier étage le premier étage
wtf? é is not in the ascii character set.
Someone take me back to school.
Edit : I tried this also INSERT INTO NATIONAL_CHARACTERS (NON_UNICODE, ACTUAL_UNICODE) VALUES ('汉字/漢字','汉字/漢字');
SELECT * FROM NATIONAL_CHARACTERS;
1 le premier étage le premier étage
2 汉字/漢字 汉字/漢字
Comment