Artem Kalinchuk
Artem Kalinchuk

Reputation: 6652

Ruby 1.9 invalid multibyte char (UTF-8)

I've searched all over and tried everything but I still get:

invalid multibyte char (UTF-8)

When doing something like:

some_string.gsub(/…/)

Even though I added this to the top of the file:

# encoding: utf-8

Any help?

Upvotes: 1

Views: 1201

Answers (1)

alf
alf

Reputation: 18550

Try:

some_string.gsub(/\u2026/)

You can also take a look at this question for more information.

Upvotes: 2

Related Questions