A
A
Alexander Wolf2015-04-11 21:22:44
Ruby on Rails
Alexander Wolf, 2015-04-11 21:22:44

Russian characters in send_file?

Hey! I'm trying to send the file using the send_file method, but the Russian characters in the name are replaced with krakozyabra :( What should I do?
UPD: I uploaded it to another server and everything worked. So, the problem is not in Ruby. What could be the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thepry, 2015-04-11
@thepry

Is it on the first line of the file # encoding: UTF-8?
Usually this solves the problem with Cyrillic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question