File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 188
188
189
189
Returns a new read-only I/O stream, which converts text in the encoding `from`
190
190
read from `istream` into text in the encoding `to`.
191
+
192
+ Note that some implementations (notably the Windows one) may accept invalid sequences
193
+ in the input data without raising an error.
191
194
"""
192
195
function StringDecoder (istream:: IO , from:: ASCIIString , to:: ASCIIString = " UTF-8" )
193
196
cd = iconv_open (to, from)
@@ -256,6 +259,9 @@ encoding_string(::Type{UTF32String}) = (ENDIAN_BOM == 0x04030201) ? "UTF-32LE" :
256
259
decode(a::Vector{UInt8}, enc::ASCIIString)
257
260
258
261
Convert an array of bytes `a` representing text in encoding `enc` to a string.
262
+
263
+ Note that some implementations (notably the Windows one) may accept invalid sequences
264
+ in the input data without raising an error.
259
265
"""
260
266
function decode (a:: Vector{UInt8} , enc:: ASCIIString )
261
267
b = IOBuffer (a)
You can’t perform that action at this time.
0 commit comments