I have a regex:
/[!,.!:;\-\?\(\)"\s\n]/
Which works fine, but when I add:
«»
to the regex it causes an error:
invalid multibyte char (US-ASCII)
What is wrong? How do I fix that?
I have a regex:
/[!,.!:;\-\?\(\)"\s\n]/
Which works fine, but when I add:
«»
to the regex it causes an error:
invalid multibyte char (US-ASCII)
What is wrong? How do I fix that?
On the first line of your file, write
#encoding: UTF-8
This is needed for ruby 1.9, but not for1.8 or 2.0