Put the following on the first line of your file, where you have Β£ .
By default, ruby ββcan read single-byte characters that are US-ASCII characters . The Β£ character does not fit into the US-ASCII code, and the magic comment above allows the ruby ββto read the file as UTF-8 code, which becomes standard and is capable of handling multi-byte characters, including Β£ (Added after the Tin Man sentence).
Edit With Ruby 2.0, which will be published this month, the default encoding will be UTF-8, so you no longer need to do this.
source share