shoes / shoesrb.com

A new website for Shoes
http://shoesrb.com
42 stars 24 forks source link

Description of Ruby Unicode support #95

Open apjanke opened 5 years ago

apjanke commented 5 years ago

On http://shoesrb.com/manual/Rules.html in the "UTF-8 Everywhere" section, it says:

Ruby itself isn't Unicode aware. And UTF-8 is a type of Unicode.

That's not true any more, is it? I thought that as of Ruby 2.3 at least (which Shoes is now shipping), Ruby supports Unicode and UTF-8, and in fact uses UTF-8 as its default encoding for Strings.

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.5
BuildVersion:   18F132
$ /usr/bin/ruby --version
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
$ /usr/bin/irb
irb(main):001:0> __ENCODING__.name
=> "UTF-8"
irb(main):002:0>

Should this section of the manual be revised?

Also, it says:

Important note: if some UTF-8 characters don't display for you, you will need to change the paragraph's font. This is especially common on OS X.

I'm not sure that's true any more either. The default fonts for macOS seem to have pretty good Unicode non-English coverage these days.

davorb commented 5 years ago

Yes, I think you're right about this. Maybe open a PR?