diff --git a/oec/tn3270.py b/oec/tn3270.py index 2c4fa04..19af5a4 100644 --- a/oec/tn3270.py +++ b/oec/tn3270.py @@ -221,6 +221,10 @@ class TN3270Session(Session): if byte == 0x40 and cell.formatting is not None and cell.formatting.reverse: return encode_ascii_character(ord('#')) + # TODO: Temporary workaround until character set support is added. + if cell.character_set is not None: + return encode_ascii_character(ord('ß')) + return encode_ebcdic_character(byte) def _format_message_area(self): diff --git a/requirements.txt b/requirements.txt index 25468e9..0ca5fa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ ptyprocess==0.7.0 pycoax==0.6.0 pyserial==3.5 pyte==0.8.0 -pytn3270==0.8.0 +pytn3270==0.9.0 sliplib==0.6.2 sortedcontainers==2.3.0 wcwidth==0.2.5