@@ -132,6 +132,10 module RepositoriesHelper | |||
|
132 | 132 | # do nothing here and try the next encoding |
|
133 | 133 | end |
|
134 | 134 | end |
|
135 | if str.respond_to?(:force_encoding) | |
|
136 | str = str.encode("ASCII-8BIT", :invalid => :replace, | |
|
137 | :undef => :replace, :replace => '?').encode("UTF-8") | |
|
138 | end | |
|
135 | 139 | str |
|
136 | 140 | end |
|
137 | 141 |
General Comments 0
You need to be logged in to leave comments.
Login now