You have to set proper encoding for the ini before writing to it. Maybe like this:
Example()
Func Example()
; Set proper encoding for the ini file
FileClose(FileOpen("emoji.ini", 32 + 1 + 8))
; Create a GUI with various controls.
Local $hGUI = GUICreate("Example", 200, 200)
Local $hinput = GUICtrlCreateInput("", 25, 25, 150, 25)
Local $idOK = GUICtrlCreateButton("OK", 75, 100, 50, 25)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case -3
ExitLoop
Case $idOK
$emoji = GUICtrlRead($hinput, 1)
IniWrite("emoji.ini", "1", "emoji", $emoji)
MsgBox(0, "", IniRead("emoji.ini", "1", "emoji", ""))
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete($hGUI)
EndFunc