I'm most familiar with a comment like this to set encoding:

```ruby
# encoding: utf-8
```

Does that work for you? It's less to type, less error-prone IMO