File: encoding002.stdout

package info (click to toggle)
ghc 9.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 168,924 kB
  • sloc: haskell: 713,548; ansic: 84,223; cpp: 30,255; javascript: 9,003; sh: 7,870; fortran: 3,527; python: 3,228; asm: 2,523; makefile: 2,326; yacc: 1,570; lisp: 532; xml: 196; perl: 111; csh: 2
file content (61 lines) | stat: -rw-r--r-- 1,453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
== UTF-8: roundtripping
[72,105,237,178,128,33]
"Hi\56557\56498\56448!"
[72,105,237,178,128,33]
True

== UTF-8: decoding
"recoverDecode: invalid argument (cannot decode byte sequence starting from 237)"
"Hi!"
"Hi\65533\65533\65533!"
"Hi\56557\56498\56448!"
== UTF-8: encoding
[]
[72,105,33]
[72,105,63,33]
[72,105,128,33]

== UTF-16LE: decoding
"recoverDecode: invalid argument (cannot decode byte sequence starting from 255)"
"Hi\65503\8671"
"Hi\65533\65503\8671\65533"
"Hi\56575\65503\8671\NUL"
== UTF-16LE: encoding
[]
[72,0,105,0,33,0]
[72,0,105,0,63,0,33,0]
[72,0,105,0,128,33,0]

== UTF-16BE: decoding
"recoverDecode: invalid argument (cannot decode byte sequence starting from 223)"
"Hi\65503\65280"
"Hi\65533\65503\65280\65533"
"Hi\56543\65503\65280!"
== UTF-16BE: encoding
[]
[0,72,0,105,0,33]
[0,72,0,105,0,63,0,33]
[0,72,0,105,128,0,33]

== UTF-32LE: decoding
"recoverDecode: invalid argument (cannot decode byte sequence starting from 237)"
"Hi\8448"
"Hi\65533\65533\65533\8448\65533"
"Hi\56557\56498\56448\8448\NUL"
== UTF-32LE: encoding
[]
[72,0,0,0,105,0,0,0,33,0,0,0]
[72,0,0,0,105,0,0,0,63,0,0,0,33,0,0,0]
[72,0,0,0,105,0,0,0,128,33,0,0,0]

== UTF-32BE: decoding
"recoverDecode: invalid argument (cannot decode byte sequence starting from 0)"
"Hi!"
"Hi\65533\65533\65533\65533!"
"Hi\NUL\56448\56498\56557!"
== UTF-32BE: encoding
[]
[0,0,0,72,0,0,0,105,0,0,0,33]
[0,0,0,72,0,0,0,105,0,0,0,63,0,0,0,33]
[0,0,0,72,0,0,0,105,128,0,0,0,33]