Open andyli0123 opened 4 months ago
If the result contains Chinese, Gemini reads it as garbled. (always)
response = await chat.sendMessage(Content.functionResponse(functionCall.name, result));
Properties will also be garbled. (sometimes)
\350\230\213\346\236\234 should be 蘋果 \351\200\231\345\200\213\346\274\217\346\264\236\345\245\275\345\232\264\351\207\215 should be 這個漏洞好嚴重
\350\230\213\346\236\234
蘋果
\351\200\231\345\200\213\346\274\217\346\264\236\345\245\275\345\232\264\351\207\215
這個漏洞好嚴重
Simulates a garbled situation in Python:
encoded_string = "\350\230\213\346\236\234" decoded_string = encoded_string.encode('latin1').decode('utf-8') print(decoded_string)
Café will also become Caf\303\251.
Café
Caf\303\251
Description of the bug:
If the result contains Chinese, Gemini reads it as garbled. (always)
Properties will also be garbled. (sometimes)
Actual vs expected behavior:
\350\230\213\346\236\234
should be蘋果
\351\200\231\345\200\213\346\274\217\346\264\236\345\245\275\345\232\264\351\207\215
should be這個漏洞好嚴重
Any other information you'd like to share?
Simulates a garbled situation in Python: