import { lossyNormalize } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/format/utf8.ts";
Normalize a string using Unicode Normalization Form KC (NFKC): compatibility decomposition, followed by canonical composition. NFKC is the preferred form for applications in which disambiguation between characters is critical. In Libauth, all message formats designed for transmission between trust centers are NFKC-normalized to hinder exploits in which lookalike characters are used to deceive counterparties.
E.g.:
console.log(lossyNormalize('ο¬tππ«π¨βπ©βπ§βπ¦')); // 'fitππ«π¨βπ©βπ§βπ¦'