Gemini 2.0 Flash Non UTF-8 Encoding Issue

I am using Gemini 2.0 Flash API for my product in a flutter based mobile application, the primary language for conversation is Italian. So, I am facing an issue where API itself is unable to convert non utf-8 for accented characters example pi\t which actually should be “più”. I am attaching snippets also. This issue is inconsistent, as sometimes it correctly encodes it and sometimes it does not. So how do I solve this issue?

Hello,

Welcome to the Forum,

I would recommend using our newer and improved models, and check if you face the same issue with those models as well.

Fantastic gemini 2.0 & 2.5 based mobile application developers

Sure, I will let you know.