We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 368b340 commit 861063cCopy full SHA for 861063c
test/runtests.jl
@@ -69,6 +69,18 @@ if OS_NAME != :Windows
69
end
70
71
72
+let x = encode("ÄÆä", "ISO-8859-1")
73
+ @test_throws ErrorException decode(x, "UTF-8")
74
+ try
75
+ decode(x, "UTF-8")
76
+ catch err
77
+ io = IOBuffer()
78
+ showerror(io, err)
79
+ @test takebuf_string(io) ==
80
+ "iconv error: byte sequence 0xc4c6e4 is invalid in source encoding or cannot be represented in target encoding"
81
+ end
82
+end
83
+
84
mktemp() do p, io
85
s = "café crème"
86
write(io, encode(s, "CP1252"))
0 commit comments