Read a string.
Make sure it's valid hex number, and in a reasonable range (let's say from 0 to 10FFFF). Also perhaps exclude the surrogate values (D800..DFFF).
Use strtoull(..., 16) or whichever similar to parse it and convert to an integer.
Use g_unichar_to_utf8() to convert it to UTF-8.
Feed it to vte.
Read a string.
Make sure it's valid hex number, and in a reasonable range (let's say from 0 to 10FFFF). Also perhaps exclude the surrogate values (D800..DFFF).
Use strtoull(..., 16) or whichever similar to parse it and convert to an integer.
Use g_unichar_to_utf8() to convert it to UTF-8.
Feed it to vte.