You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: input/tail.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,14 @@ You can get the list of supported encodings with this command:
231
231
$ ruby -e 'p Encoding.name_list.sort'
232
232
```
233
233
234
+
{% hint style='danger' %}
235
+
Caution: From v0.14.12 to v1.18.x, there was a bug.
236
+
237
+
* You need to specify both `encoding` and `from_encoding`.
238
+
* If you specify only `encoding`, `String#encode` will be executed unintentionally. **It can break the data.**
239
+
* To change only the encoding info as metadata, without transforming the string data itself (`String#force_encoding`), you need to specify the same encoding for both `encoding` and `from_encoding`.
0 commit comments