search for: send_docu

Displaying 1 result from an estimated 1 matches for "send_docu".

Did you mean: send_doc
2007 Nov 30
0
Screwed Special Characters in an utf8 String Read From Database
...I show the pathname inside the browser, or look at it in the database (phpmyadmin), the special characters seem to be correct. I already added the "encoding: utf8" line to my database.yml file, so this shouldnt be the problem. Here is the code to send the file inside my controller: def send_document path = Document.find(params[:id]).path puts path # for "ÄÖÜ.txt" gives "ÄÃ-ÃOE.txt" on console send_file(path) # gives: Cannot read file ÄÖÜ.txt in browser end Did anybody already have a similar problem or can give me some advice how to fix this? Thanks in adva...