Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description of Ruby Unicode support #95

Open
apjanke opened this issue May 28, 2019 · 1 comment
Open

Description of Ruby Unicode support #95

apjanke opened this issue May 28, 2019 · 1 comment

Comments

@apjanke
Copy link
Contributor

apjanke commented May 28, 2019

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
Copy link
Member

davorb commented Jul 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants