source | encoding | len | + ruby literal | + ruby pack | + xml text | + xml entity | ||||
---|---|---|---|---|---|---|---|---|---|---|
encoding | len | encoding | len | encoding | len | encoding | len | |||
ruby literal | UTF-8 | 1 | UTF-8 | 2 | boom | UTF-8 | 2 | UTF-8 | 2 | |
ruby pack | ASCII-8BIT | 3 | boom | ASCII-8BIT | 6 | boom | ASCII-8BIT | 6 | ||
xml text | UTF-8 | 1 | UTF-8 | 2 | boom | UTF-8 | 2 | UTF-8 | 2 | |
xml entity | ASCII-8BIT | 3 | UTF-8 | 2 | ASCII-8BIT | 6 | UTF-8 | 2 | ASCII-8BIT | 6 |