A
A
Alexander Wolf2015-04-11 17:57:38
linux
Alexander Wolf, 2015-04-11 17:57:38

How to use unicode in rails filenames?

Hey! We rename files on the server with \u200B (zero-width space) appended to them.
And if you download this file via send_file, then this character is replaced by "-".
Attention, question:)
How to give files from the server, in the names of which there are such characters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Shein, 2015-04-12
@conf

Well, set the desired title and you will have a normal file name for the download.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question