Files with cyrillic names

Hi.
Due to some stupid requirements that are out of my control I was forced to rename all my images from English to Bulgarian (cyrillic). This led to a complication when trying to retrieve the files to my Phonegap App (I’m using the JS API). Most of the images would visualize but some of them would return a 400 (Bad Request) Error in the console. The problematic images are completely random and on page refresh the problem would occur with other random images. What can I do to resolve this problem (unfortunately the file names have to stay in Bulgarian).
Thank you in advance!

Hi Kaloyan,

Could you please let me know the path to the directory where the images are?

Regards,
Mark

Hi Mark,

Here is some console output:

var cyrillic_val=‘https://api.backendless.com/’+APPLICATION_ID+’/v1/files/Categories/’+cCollection.data.name+’.jpg’;
console.log(cyrillic_val);

I get the names of the files from a table (for example I have car in Products table and a car.jpg in my files)
This prints out https://api.backendless.com/APPLICATION_ID/v1/files/Categories/Десерти.jpg
I add this with jquery to the image source attribute and most of the time it works but for some random pictures I get:

GET https://api.backendless.com/APPLICATION_ID/v1/files/Categories/Салати.jpg 400 (Bad Request)

But before this error occurs the console.log regarding it prints out fine.
(I hid my add id for the purpose of the chat)

Kaloyan,

Thanks, but you left out the most critical part - you application id. Without it, we cannot check the accessiblity of the file storage. You can email app id to support@backendless.com and make sure to include a link to this topic.

Regards,
Mark

Oh sorry.

I just sent the email with a link and the id.

I was able to duplicate the problem. It needs to be investigated further. I will assign an internal ticket to an engineer.

Mark

Thank you Mark.

Please notify me if you reach a solution.

Mark, I have the same thing for getting files using REST API with cyrillic names. It responds with ???.png. Will appreciate if you will help me too.

Thanks,
best,
Nick.

Hi Nick,

Could you please provide an example of a problematic URL?

Mark

Hi Kaloyan,

Could you please check if you’re getting any errors now?

Mark

Hi Mark,
As far as I can see there are no problems now. Thank you for you support.
Best regards,
Kaloyan

Hey, Mark!
https://api.backendless.com/v1/files/folder
When I am trying to get list of files from folder, if file has cyrillic name it returns with ???.extension name.Thanks for your help!

Hi Nick,

I need to have a specific file URL which would demonstrate the problem. Can you provide one please?

Mark

https://api.backendless.com/v1/main/files/magazines

I tried to upload cyrillic file from my windows PC, and it works now. Maybe it is a problem of my Macbook encoding.
Will try with osx later,
thanks.

Hey Mark,

how are you doing?

Still getting same problem sometimes. Today it came back.
Thats what I am getting from server:

{"name":"����������������.pdf",
"createdOn":0,
"publicUrl":"[url=https://api.backendless.com/0970F20D-B658-CA04-FFFF-BC0374BC5D00/v1/files/magazines/%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD.pdf]https://api.backendless.com/0970F20D-B658-CA04-FFFF-BC0374BC5D00/v1/files/magazines/%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD.pdf","size":1024,"url":"magazines/����������������.pdf"[/url];
}

Hi, Nike.

Did you upload this file via Backendless web console of via API request?

Hi, Anatolii,

file was uploaded via Backendless web console.