I want to find if emoji is exists and replace to string(HTML unicode). (rune to string)
for example, this is the sentence
"i like you hahahah hello."
to this is result.
"i like you hahahah 😀 hello."
the emoji and the emoji position are randomly.
I will use upper code in below code.
import "golang.org/x/text/encoding/korean"
strings_with_emoji = "i like you hahahah hello."
var euckrEnc = korean.EUCKR.NewEncoder()
euckrSubject, err := euckrEnc.String(strings_with_emoji)
there are no value of emoji. https://uic.io/ko/charset/show/euc-kr/
so I got the error is ERRO[0002] encoding: rune not supported by encoding.