0

I developed and automated deployment script for Ruby. However, when I try to run it I stumble upon this error:

deploy.rb:86:in `gsub': incompatible encoding regexp match (UTF-8 regexp with CP850 string) (Encoding::CompatibilityError).

The line of code it refers to is:

      new_content = new_content.gsub(/£ {{(.*)}}/) { |match| "{{"+match.tr('£ {{}}', '')+"}} €" }

Any ideas on what is causing this issue and how to solve it?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.