|
1 | | -*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 17 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 23 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1309,10 +1309,14 @@ blob2str({blob} [, {options}]) *blob2str()* |
1309 | 1309 | items: |
1310 | 1310 | encoding Decode the bytes in {blob} using this |
1311 | 1311 | encoding. The value is a |String|. See |
1312 | | - |encoding-names| for the supported values. |
| 1312 | + |encoding-names| for the supported values |
| 1313 | + (plus the special value "none"). |
1313 | 1314 | *E1515* |
1314 | | - An error is given and an empty List is returned if |
1315 | | - an invalid byte sequence is encountered in {blob}, |
| 1315 | + When current 'encoding' is "utf-8", an error is given and an |
| 1316 | + empty List is returned if an invalid byte sequence is |
| 1317 | + encountered in {blob}. To suppress this validation and get |
| 1318 | + potentially invalid string, set "encoding" in {options} to |
| 1319 | + "none". |
1316 | 1320 |
|
1317 | 1321 | Returns an empty List if blob is empty. |
1318 | 1322 |
|
@@ -10645,7 +10649,8 @@ str2blob({list} [, {options}]) *str2blob()* |
10645 | 10649 |
|
10646 | 10650 | The argument {options} is a |Dict| and supports the following |
10647 | 10651 | items: |
10648 | | - encoding Encode the characters using this encoding. |
| 10652 | + encoding Convert the characters using this encoding |
| 10653 | + before making the Blob. |
10649 | 10654 | The value is a |String|. See |encoding-names| |
10650 | 10655 | for the supported values. |
10651 | 10656 |
|
|
0 commit comments