开发者

Hebrew strings in ruby

开发者 https://www.devze.com 2023-02-16 09:04 出处:网络
I am trying to create 开发者_如何学编程a text files with different sentences. I am using File.stuff methods to do that.

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 &nbsp 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 = 'עברית'
0

精彩评论

暂无评论...
验证码 换一张
取 消