Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatar conteúdo das requisições à API como UTF-8 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arj-mat
Copy link

@arj-mat arj-mat commented Dec 7, 2023

O JSON da requisição é enviado ao servidor usando o encoding padrão ISO-8859-1 da classe StringEntity.
A RFC 8259 especifica que o encoding padrão do JSON é o UTF-8.

O resultado é que TTS com mensagens contendo caracteres especiais não são entregues como deveriam:
image

Nos endpoints legados apiX.totalvoice.com.br isso causa uma resposta 502 Bad Gateway do servidor.
No novo endpoint voice-api.zenvia.com as chamadas TTS são ditas com uma pausa na voz do bot onde deveria haver acentos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant