Skip to content

Commit 64c074a

Browse files
author
Ryan Jacobs
committed
force the encoding
1 parent d286b3a commit 64c074a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/github-copywriter/regex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def update_copyright(year, old_content)
5757
}
5858

5959
# Convert the strings to unicode
60-
old_content.encode! "utf-8"
60+
old_content.force_encoding "utf-8"
6161

6262
# All teh regex
6363
prefix = /([Cc]opyright( \([Cc]\)| ©)?|\([Cc]\)|©) /

0 commit comments

Comments
 (0)