[Rails] Re: Strange behaviour of console with non English symbols
FWIW this works for me (I needed to specify encoding):
# encoding: ISO8859-5
s = "мистика"
`touch #{s}`
`cat #{s}`
`cat < #{s}`
This is with Ruby 1.9.2p80. Are you still getting a "No such file"
error? Could it be a permission issue?
On Dec 28, 7:59 am, woto <oga...@gmail.com> wrote:
> s = "мистика"
>
> `touch #{s}`
> `cat #{s}`
> `cat < #{s}`
>
> Result fails.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home