### Question:
WasmEventEncoder { private static String encodeString(String string) { byte[] bytes = string.getBytes(StandardCharsets.UTF_8); return encodeBytes(bytes); } private  WasmEventEncoder(); static String encode(WasmEvent event); static String encodeIndexParameter(Object o);  }### Answer:
@Test public void encodeString() { String string = "你好abc"; String result = WasmEventEncoder.encodeIndexParameter(string); assertThat(result, is("0x0000000000000000000000000000000000000000000000e4bda0e5a5bd616263")); string = "你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc你好abc"; result = WasmEventEncoder.encodeIndexParameter(string); assertThat(result, is("0xa294cd0e9eff651914801137f53e951abab16791a6a27a7314ac202e35f9e221")); }