euckr
This page is part of MariaDB's Documentation.
The parent of this page is: Character Sets for MariaDB Xpand
Topics on this page:
Overview
EUC-KR Korean (maxlen 2)
DETAILS
Default Collation: euckr_
korean_ ci Max Length: 2 bytes
The collation names accepted for this character set are:
EXAMPLES
SELECT TYPEOF(_euckr'Test') AS result1,
TYPEOF(CONVERT('Test' USING euckr)) AS result2\G
*************************** 1. row ***************************
result1: varchar(255) CHARACTER SET euckr not null
result2: varchar(65535) CHARACTER SET euckr
CREATE TABLE charset_example (
name VARCHAR(32),
description VARCHAR(64) CHARSET euckr
);
SET NAMES utf8;
SET @txt = _utf8"Dji pou magnî do vêre, çoula m' freut nén må.";
INSERT INTO charset_example VALUES
('test 1', CONVERT(@txt USING euckr)),
('test 2', 'A normal string.');
SELECT name,
LENGTH(description) AS bytes,
CHAR_LENGTH(description) AS chars
FROM charset_example;
+--------+-------+-------+
| name | bytes | chars |
+--------+-------+-------+
| test 1 | 45 | 45 |
| test 2 | 16 | 16 |
+--------+-------+-------+
SET SESSION character_set_connection = 'euckr';