Incorrect attachment file name when containing non-latin characters

Hello,

I’m trying to send a file attachment message to a group using API. It works fine, except when the file name contains non-latin characters like umlauts or cyrillic chars. In this case all non-latin chars are converted to “?”.

If the posted data for sending file message is like:

{
“name”:“тест.pdf”,
“extension”:“pdf”,
“size”:350,
“mimeType”:“application/pdf”,
“url”:"…some url…"
}

the response from group messages API is like:

{

“attachments”:[
{
“url”:"…some url…",
“name”:"???.pdf",
“size”:350,
“mimeType”:“application/pdf”,
“extension”:“pdf”
}
]

}

The issue is resolved, it wasn’t CometChat related. Thanks anyway.

1 Like

Thank you for informing.

-Siva

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.