edsu/pymarc — Issue #16: Problem reading alternative graphic character sets
Author: EdwardBetts
Created: 2011-10-12 17:59:38+00:00
State: open

Below is a failing unit test. As I understand it subscript 2 can be represented in MARC-8 like this: ESC b 2 ESC s.
pymarc doesn't handle this correctly. Is it a bug, or am I doing something wrong?

from pymarc import marc8_to_unicode

assert marc8_to_unicode('CO\x1bb2\x1bs is a gas') == u'CO\u2082 is a gas'