Hello,
I have an agent that performs real-time analysis of videos uploaded to specific YouTube channels. I send the video link and some instructions along with the prompt to the following endpoint (Gemini API):
https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-preview:generateContent
It had been working without issues for a long time. However, I started getting an error like the one below with Gemini 2.5 Pro. I then switched to Gemini 3 Pro thinking it was a model-related issue, but the error persists. From what I understand, thereās a problem related to Turkish characters and UTF-8.
This system runs on n8n. And the problem is this doesnāt happen with all requests. Some of them returns an unreadable text. I would really appreciate it if you could help.
The Prompt that I use:
**return {
contents: [
{
role: āuserā,
parts: [
{
fileData: {
mimeType: āvideo/*ā,
fileUri: $input.first().json.videoUrl
}
},
{
text: `This is a long prompt so I removed it`
}
]
}
],
generationConfig: {
responseMimeType: ātext/plainā
}
};
This is what I get from Gemini (http request):**
AJeté„ęŖn yurt dč°č§č° uč½uč§larč° ič½in gēncellenen bagaj prosedērlerini, limitlerini ve bilet segmentlerine gęre (Basic, EcoJet, Flex, Premium) dečič§en bagaj haklarč°nč° yolculara net bir č§ekilde ęčretmek.\n\n**RTB:**\nKēč½ēk č½anta, kabin bagajč° ve kayč°tlč° bagaj ič½in sunulan kesin ęlč½ēler (cm), ačč°rlč°k limitleri (kg) ve bilet paketlerinin kapsamč°nč° gęsteren detaylč° karč§č°lač§tč°rma tablosu.
