Skip to content

Ruby Keyword: __ENCODING__

☈king edited this page Nov 19, 2012 · 3 revisions

Read-only value of the current Encoding object (which has methods: ascii_compatible? dummy? inspect name names replicate to_s)

By default is: #Encoding:US-ASCII

But can be affected by the 1st or 2nd line of the file being something like:

encoding: utf-8

Clone this wiki locally