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 188188
189189Returns a new read-only I/O stream, which converts text in the encoding `from`
190190read 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.
191194"""
192195function StringDecoder (istream:: IO , from:: ASCIIString , to:: ASCIIString = " UTF-8" )
193196 cd = iconv_open (to, from)
@@ -256,6 +259,9 @@ encoding_string(::Type{UTF32String}) = (ENDIAN_BOM == 0x04030201) ? "UTF-32LE" :
256259 decode(a::Vector{UInt8}, enc::ASCIIString)
257260
258261Convert 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.
259265"""
260266function decode (a:: Vector{UInt8} , enc:: ASCIIString )
261267 b = IOBuffer (a)
You can’t perform that action at this time.
0 commit comments