How to pass FString between Unreal and Lua?

I am using Lua and Unreal, meet some problem about FString and char* , when I pass chinese text, they can not be passed correctly
input PringLog(“nihao你好”)

output LogTemp: Warning: nihao??

static int PrintLog(lua_State* L)
	FString log = ANSI_TO_TCHAR(lua_tostring(L, -1));
	UE_LOG(LogTemp, Warning, TEXT("%s"), *log);

	return 0;

static void RegisterUnrealFunction(lua_State* L)
	lua_pushcfunction(L, PrintLog);
	lua_setglobal(L, "PrintLog");

Thats text encoding issue, you need to do proper conversion matching lua encoding, you might try UTF8_TO_TCHAR insted. You can read about character encoding here:

Thank you, solved my problem