Skip to content

Commit 9ee12ff

Browse files
committed
Specify that UTF16String and UTF32String are in low-endian
This is more correct, and Mac OS X's iconv appears to assume big-endian in the abscence of a BOM.
1 parent 5c1d569 commit 9ee12ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iconv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ end
245245

246246
encoding_string(::Type{ASCIIString}) = "ASCII"
247247
encoding_string(::Type{UTF8String}) = "UTF-8"
248-
encoding_string(::Type{UTF16String}) = "UTF-16"
249-
encoding_string(::Type{UTF32String}) = "UTF-32"
248+
encoding_string(::Type{UTF16String}) = "UTF-16LE"
249+
encoding_string(::Type{UTF32String}) = "UTF-32LE"
250250

251251
"""
252252
decode(a::Vector{UInt8}, enc::ASCIIString)

0 commit comments

Comments
 (0)