Previously @CodepointsNet on Twitter.
[bridged from https://typo.social/@codepoints on the fediverse by https://fed.brid.gy/ ]
SET NAMES utf8mb4;
-- helper: safe code point to utf8mb4 string using JSON unescape
DELIMITER //
DROP FUNCTION IF EXISTS unichar//
CREATE FUNCTION unichar(cp INT)
RETURNS VARCHAR(4) CHARSET utf8mb4
DETERMINISTIC
BEGIN
DECLARE v INT;
DECLARE […]
SET NAMES utf8mb4;
-- helper: safe code point to utf8mb4 string using JSON unescape
DELIMITER //
DROP FUNCTION IF EXISTS unichar//
CREATE FUNCTION unichar(cp INT)
RETURNS VARCHAR(4) CHARSET utf8mb4
DETERMINISTIC
BEGIN
DECLARE v INT;
DECLARE […]