Project

General

Profile

Actions

Feature #6679

closed

Default Ruby source file encoding to utf-8

Added by claytrump (Clay Trump) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
[ruby-core:46021]

Description

Let's change the default encoding for Ruby source files from US-ASCII
to UTF-8 in Ruby 2.0

• Convention over Configuration
• Ruby 1.9 forced encoding for code that was not pure ASCII, so
existing codebase already has magic comments.

In Ruby 2.0, "# encoding: utf-8" can be the default.


Files

utf.pdf (36.3 KB) utf.pdf claytrump (Clay Trump), 07/01/2012 07:23 AM
utf.pdf (37.1 KB) utf.pdf claytrump (Clay Trump), 07/03/2012 12:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0