Hebrew strings in ruby
I am trying to create 开发者_如何学编程a text files with different sentences. I am using File.stuff methods to do that. How do I put a spacing (Simply like   in html and other lanuages)? I've been told I should use \b . It doesn't seem to work - I belive it's because I am writing in hebrew. What can I do?
I have no idea what File.stuff
is supposed to be - the File class has no such method.
If you want to use hebrew text in a ruby script, prepend the "magic encoding comment" to your file.
# encoding: UTF-8
hebrew = 'עברית'
精彩评论