This is the content I’m trying to save to my Postgres text
field.
<<60, 98, 111, 100, 121, 62, 60, 104, 114, 47, 62, 60, 104, 49, 62, 70, 108,
117, 105, 100, 32, 67, 97, 109, 101, 114, 97, 50, 32, 84, 114, 97, 99, 107,
101, 114, 194, 160, 84, 111, 103, 103, 108, 105, 110, 103, 60, 47, 104, 49,
...>>
And this is the error:
** (Postgrex.Error) ERROR 22021 (character_not_in_repertoire): invalid byte sequence for encoding “UTF8”: 0xe3 0xaf 0xe2
I just need a way to ask if my_html
is valid UTF-8? I’ve been looking all night and haven’t made a lick of progress on something seemingly simple haha, one of those days.