File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,12 +311,12 @@ X<|utf16-le>X<|utf16-be>X<|utf16>X<|utf-16>
311
311
312
312
Unlike utf8, utf16 has an
313
313
endianess — either big endian or little endian. This relates to the ordering of
314
- bytes. Computer CPUs also have an endianess. Perl 6's ' utf16' format specifier
314
+ bytes. Computer CPUs also have an endianess. Perl 6's C < utf16 > format specifier
315
315
will use the endianess of host system when encoding. When decoding it will look
316
316
for a byte order mark and if it is there use that to set the endianess. If there
317
317
is no byte order mark it will assume the file uses the same endianess as the host
318
318
system. A byte order mark is the codepoint U+FEFF which is ZERO WIDTH NO-BREAK
319
- SPACE. On ' utf16' encoded files the standard states if it exists at the start
319
+ SPACE. On C < utf16 > encoded files the standard states if it exists at the start
320
320
of a file it shall be interpreted as a byte order mark, not a U+FEFF codepoint.
321
321
322
322
While writing will cause a different file to be written on different endian
You can’t perform that action at this time.
0 commit comments