Skip to main content
2 of 4
Add additional details based on comments
Patronics
  • 125
  • 3
  • 8

Tmux pane with long-running session using wrong character set?

Today I connected to a long-running process in tmux over ssh for work, to find that the pane the process was running in seems to have started using the wrong character encoding for its output, leading to the unreadable mess in the code block below. The process itself is clearly still running fine, the output is color-coded and exactly matches the format it should be, and output files are being created without issue, so it's clear that there's still valid information being processed overall, and only the display to the terminal is messed up.

Without killing this process (which has been running for days at this point, and doesn't have the ability to gracefully resume from where it left off), how can I reset the character encoding tmux is using (presumably to UTF-8, or anything else ASCII compatible, there should be very few, if any, characters that aren't in the ASCII range)?

Additionally, what output of my script (which is processing documents, and may occasionally produce unwanted/unexpected character outputs), might have triggered this issue to begin with?

I'd also be interested if anyone can identify the character set that it's using, it seems to have the same characters for capital letters and numbers (except '0') as ASCII does, so that helps narrow it down

I read another answer that suggested reattaching to tmux with tmux -u attach, but that didn't seem to change anything.

"▒⎼├": ["␋└⎻┌␊└␊┼├▒├␋⎺┼"← "␋┼␌␋␍␊┼␌␊"← "⎼␊␍┤␌├␋⎺┼"← "␊┌␋└␋┼▒├␋⎺┼"]←
"␉⎼␊▒⎽├°␊␊␍␋┼±": ["⎻⎼⎺␤␋␉␋├␋⎺┼"← "├⎼▒┼⎽└␋⎽⎽␋⎺┼"← "⎼␊⎽␋⎽├▒┼␌␊"← "␋┼°␊␌├␋⎺┼"]←
"└␊┼": ["┬␤⎺"← "␤▒┴␊"← "⎽␊│"← "┬␋├␤"← "└␊┼"]←
"⎻⎼␊␊│⎻⎺⎽┤⎼␊ ⎻⎼⎺⎻␤≤┌▒│␋⎽": ["┤⎽␊"← "␊°°␋␌▒␌≤"← "⎽▒°␊├≤"← "␌⎺⎽├↑␊°°␊␌├␋┴␊┼␊⎽⎽"]←
"┴▒␌␌␋┼␊": ["␍␊┴␊┌⎺⎻└␊┼├"← "├␤␊⎼▒⎻≤"← "␋└└┤┼␋├≤"← "⎻⎼⎺├␊␌├␋⎺┼"]
£
␊⎼⎼⎺⎼ ␍␊├▒␋┌⎽: 'N⎺┼␊T≤⎻␊' ⎺␉┘␊␌├ ␋⎽ ┼⎺├ ␋├␊⎼▒␉┌␊
▒├├␊└⎻├␋┼± ┌┌└↑␉▒⎽␊␍ ⎼␊⎻▒␋⎼⎽
┘⎽⎺┼ ⎼␊⎻▒␋⎼ ⎽┤␌␊⎽⎽°┤┌
⎼␊⎻▒␋⎼ ⎼␊⎽┤┌├:π
"┐␊≤┬⎺⎼␍⎽": ["␋┼␍␋°°␊⎼␊┼␌␊"← "⎻⎼⎺└␋⎽␌┤␋├≤"← "┤⎽␊"← "␋┼␌⎼␊▒⎽␊␍"← "⎼␊⎽␋⎽├▒┼␌␊"← "└┤┌├␋␍⎼┤±↑⎼␊⎽␋⎽├▒┼├"← "␋┼°␊␌├␋⎺┼"← "├⎼▒┼⎽└␋⎽⎽␋⎺┼"← "▒␌─┤␋⎽␋├␋⎺┼"← "┴▒␌␌␋┼␊"← "⎻▒┼␍␊└␋␌"← "┤⎽␊"← "⎻⎼⎺⎻␤≤┌▒│␋⎽"← "⎻⎼⎺├␊␌├␋⎺┼"← "└␋␌⎼⎺␉␋␌␋␍␊"← "⎽▒°␊"← "␋┼␍␋°°␊⎼␊┼├"← "␍␋▒±┼⎺⎽␋⎽"← "⎻⎼␊┴▒┌␊┼␌␊"← "⎽␌⎼␊␊┼␋┼±"← "├⎼␊▒├└␊┼├"← "␋└⎻┌␊
└␊┼├▒├␋⎺┼"← "␋┼␌␋␍␊┼␌␊"← "⎼␊␍┤␌├␋⎺┼"← "␊┌␋└␋┼▒├␋⎺┼"← "⎻⎼⎺␤␋␉␋├␋⎺┼"← "├⎼▒┼⎽└␋⎽⎽␋⎺┼"← "⎼␊⎽␋⎽├▒┼␌␊"← "␋┼°␊␌├␋⎺┼"← "┬␤⎺"← "␤▒┴␊"← "⎽␊│"← "┬␋├␤"← "└␊┼"← "┤⎽␊"← "␊°°␋␌▒␌≤"← "⎽▒°␊├≤"← "␌⎺⎽├↑␊°°␊␌├␋┴␊┼␊⎽⎽"← "␍␊┴␊┌⎺⎻└␊┼├"← "├␤␊⎼▒⎻≤"← "␋└└┤┼␋├≤"← "⎻⎼⎺├␊␌├␋⎺┼"]
£
␊⎼⎼⎺⎼ ⎻▒⎼⎽␋┼± ┘⎽⎺┼: π
"␉┌⎺⎺␍"← "├⎼▒┼⎽°┤⎽␋⎺┼"← "␋┼°␊␌├␋⎺┼⎽"← "␍␋⎽␊▒⎽␊⎽"← "┴␋⎼┤⎽"← "␤␊⎻▒├␋├␋⎽"← "␌▒┼␌␊⎼"← "␋└└┤┼⎺␍␊°␋␌␋␊┼␌≤"← "├⎼␊▒├└␊┼├"← "└␊␍␋␌␋┼␊"← "␤␋⎽├⎺⎼≤"← "⎽␌␋␊┼␌␊"← "⎼␊⎽␊▒⎼␌␤"← "␋┼°␊␌├␋⎺┼"← "└␋␌⎼⎺␉␊"← "▒⎽≤└⎻├⎺└▒├␋␌"← "␍⎺┼⎺⎼"← "␉┌⎺⎺␍ ⎻⎼⎺␍┤␌├⎽"← "├⎼▒┼⎽°┤⎽␋⎺┼↑⎼␊┌▒├␊␍"← "␌␋⎼␌┤┌▒├⎺⎼≤ ⎺┴␊⎼┌⎺▒␍"← "ARDS"← "±⎼▒°├ ┴␊⎼⎽┤⎽ ␤⎺⎽├
 ␍␋⎽␊▒⎽␊"← "┴▒␌␌␋┼␊"← "␋└└┤┼␋≥▒├␋⎺┼"← "␊⎻␋␍␊└␋⎺┌⎺±≤"← "⎽├▒├␋⎽├␋␌⎽"← "␍▒├▒"← "▒┼▒┌≤⎽␋⎽"← "└⎺␍␊┌␋┼±"← "°⎺⎼␊␌▒⎽├␋┼±"
£
␊⎼⎼⎺⎼ ␍␊├▒␋┌⎽: 'N⎺┼␊T≤⎻␊' ⎺␉┘␊␌├ ␋⎽ ┼⎺├ ␋├␊⎼▒␉┌␊
▒├├␊└⎻├␋┼± ┌┌└↑␉▒⎽␊␍ ⎼␊⎻▒␋⎼⎽
┘⎽⎺┼ ⎼␊⎻▒␋⎼ ⎽┤␌␊⎽⎽°┤┌
⎼␊⎻▒␋⎼ ⎼␊⎽┤┌├:π
"┐␊≤┬⎺⎼␍⎽": ["␉┌⎺⎺␍"← "├⎼▒┼⎽°┤⎽␋⎺┼"← "␋┼°␊␌├␋⎺┼⎽"← "␍␋⎽␊▒⎽␊⎽"← "┴␋⎼┤⎽"← "␤␊⎻▒├␋├␋⎽"← "␌▒┼␌␊⎼"← "␋└└┤┼⎺␍␊°␋␌␋␊┼␌≤"← "├⎼␊▒├└␊┼├"← "└␊␍␋␌␋┼␊"← "␤␋⎽├⎺⎼≤"← "⎽␌␋␊┼␌␊"← "⎼␊⎽␊▒⎼␌␤"← "␋┼°␊␌├␋⎺┼"← "└␋␌⎼⎺␉␊"← "▒⎽≤└⎻├⎺└▒├␋␌"← "␍⎺┼⎺⎼"← "␉┌⎺⎺␍ ⎻⎼⎺␍┤␌├⎽"← "├⎼▒┼⎽°┤⎽␋⎺┼↑⎼␊┌▒├␊␍"← "␌␋⎼␌┤┌▒├⎺⎼≤ ⎺┴␊⎼┌⎺▒␍"← "ARDS"← "±⎼▒°
├ ┴␊⎼⎽┤⎽ ␤⎺⎽├ ␍␋⎽␊▒⎽␊"← "┴▒␌␌␋┼␊"← "␋└└┤┼␋≥▒├␋⎺┼"← "␊⎻␋␍␊└␋⎺┌⎺±≤"← "⎽├▒├␋⎽├␋␌⎽"← "␍▒├▒"← "▒┼▒┌≤⎽␋⎽"← "└⎺␍␊┌␋┼±"← "°⎺⎼␊␌▒⎽├␋┼±"]
£
I┼°⎼␊─┤␊┼├┌≤↑⎺␌␌┤⎼␋┼± ┐␊≤┬⎺⎼␍⎽ ␍⎼⎺⎻⎻␊␍: 
[('⎼␋°▒└⎻␋┼'← 3)← ('⎻⎺⎽├␊│⎻⎺⎽┤⎼␊ ⎻⎼⎺⎻␤≤┌▒│␋⎽'← 2)← ('▒␋␍⎽'← 2)← ('▒⎼├'← 2)← ('⎽␌⎼␊␊┼␋┼±'← 2)← ('␊┌␋└␋┼▒├␋⎺┼'← 2)← ('␋⎼␋⎽'← 2)← ('␌└┴↑␋⎼␋⎽'← 2)← ('⎻▒⎼▒␍⎺│␋␌▒┌ ⎼␊▒␌├␋⎺┼'← 2)← ('▒┌␊└├┤≥┤└▒␉'← 2)← ('⎼␋├┤│␋└▒␉'← 2)← ('␌⎺⎼├␋␌⎺⎽├␊⎼⎺␋␍⎽'← 2)← ('␤␊⎻▒├␋├␋⎽ ␉'← 2)← ('␌⎺└└┤┼␋├≤↑▒␌─┤␋⎼␊␍↑⎻┼␊┤└⎺┼␋▒'← 2)← ('⎻┼␊┤└⎺┼
␋▒'← 2)← ('␤␊┌␋␌⎺␉▒␌├␊⎼'← 2)← ('⎻≤┌⎺⎼␋'← 2)← ('▒⎻⎺⎻├⎺⎽␋⎽'← 2)← ('␌▒┼␌␊⎼'← 2)← ('⎼␊␌␊⎻├⎺⎼'← 2)← ('┬⎺⎼┌␍┬␋␍␊'← 2)← ('C'← 2)← ('␍⎼┤±⎽'← 2)← ('HBV'← 2)← ('␤␌┴'← 2)← ('␌⎺└␉␋┼▒├␋⎺┼'← 2)← ('DMARD⎽'← 2)← ('␋└└┤┼⎺⎽┤⎻⎻⎼␊⎽⎽␋┴␊'← 2)← ('TNF'← 2)← ('├┤└⎺⎼ ┼␊␌⎼⎺⎽␋⎽ °▒␌├⎺⎼ ␋┼␤␋␉␋├⎺⎼⎽'← 2)← ('⎼␋⎽┐'← 2)← ('␌␤▒┼±␊'← 2)
← ('␊┼┴␋⎼⎺┼└␊┼├▒┌'← 2)← ('␌┌␋└▒├␊'← 2)← ('␋┼°␊␌├␋⎺┤⎽'← 2)← ('┴␊␌├⎺⎼↑␉⎺⎼┼␊'← 2)← ('┬▒⎼└␋┼±'← 2)← ('└▒┌▒⎼␋▒'← 2)← ('⎻▒⎼▒⎽␋├␊⎽'← 2)← ('MDA'← 2)← ('└▒⎽⎽'← 2)← ('␍⎼┤±'← 2)← ('⎽├▒⎻␤≤┌⎺␌⎺␌␌┤⎽ ▒┤⎼␊┤⎽'← 2)← ('┼␊⎻␤⎼⎺├⎺│␋␌␋├≤'← 2)← ('⎻␤▒⎼└▒␌⎺␍≤┼▒└␋␌⎽'← 2)← ('⎺⎽├␊⎺└≤␊┌␋├␋⎽'← 2)← ('┌␋┼␊≥⎺┌␋␍'← 2)← ('␉▒␌├␊⎼␊└␋▒'← 
2)← ('␊┼␍⎺␌▒⎼␍␋├␋⎽'← 2)← ('°┌┤␌⎺┼▒≥⎺┌␊'← 2)← ('␊├␤▒└␉┤├⎺┌'← 2)← ('┼⎺┼├┤␉␊⎼␌┤┌⎺┤⎽'← 2)← ('▒└␋┐▒␌␋┼'← 2)← ('␌┌▒⎼␋├␤⎼⎺└≤␌␋┼'← 2)← ('␌┌⎺°▒≥␋└␋┼␊'← 2)← ('└≤␌⎺␉▒␌├␊⎼␋▒'← 2)← ('⎺┤├␉⎼␊▒┐'← 2)← ('└▒┌␊ ␌␋⎼␌┤└␌␋⎽␋⎺┼'← 1)← ('␌⎺└␉␋┼▒├␋⎺┼ ├␤␊⎼▒⎻≤'← 1)← ('␌⎺┼␍⎺└⎽'← 1)← ('┼␊␊␍┌␊ ␊│␌␤▒┼±␊ ⎻⎼⎺±⎼▒└⎽'← 1)← ('␉⎼␊▒⎽├°␊␊␍␋
┼±'← 1)← ('⎺␌␌┤⎻▒├␋⎺┼▒┌ ␊│⎻⎺⎽┤⎼␊'← 1)← ('⎻␊⎼␋┼▒├▒┌ ├⎼▒┼⎽└␋⎽⎽␋⎺┼'← 1)← ('⎽␊│┤▒┌ ├⎼▒┼⎽└␋⎽⎽␋⎺┼'← 1)← ('⎽▒°␊ ⎽␊│'← 1)← ('␊▒⎼┌≤ ├⎼␊▒├└␊┼├ ␋┼␋├␋▒├␋⎺┼'← 1)← ('└␋␌⎼⎺␉␋␌␋␍␊⎽'← 1)← ('⎻⎼⎻'← 1)← ('┴▒±␋┼▒┌ ⎼␋┼±'← 1)← ('⎻⎼␊␊│⎻⎺⎽┤⎼␊ ⎻⎼⎺⎻␤≤┌▒│␋⎽'← 1)← ('␋┼␌␋␍␊┼␌␊'← 1)← ('└┤┌├␋␍⎼┤±↑⎼␊⎽␋⎽├▒┼├'← 1)← ('▒␌─┤␋⎽␋├␋⎺┼'← 1)←
 ('└␊┼'← 1)← ('⎻⎼⎺├␊␌├␋⎺┼'← 1)← ('┤⎽␊'← 1)← ('␊°°␋␌▒␌≤'← 1)← ('␋└└┤┼␋├≤'← 1)← ('␤▒┴␊'← 1)← ('⎽▒°␊├≤'← 1)← ('┬␤⎺'← 1)← ('␍␊┴␊┌⎺⎻└␊┼├'← 1)← ('␍␋▒±┼⎺⎽␋⎽'← 1)← ('⎻▒┼␍␊└␋␌'← 1)← ('⎼␊␍┤␌├␋⎺┼'← 1)← ('␋┼␌⎼␊▒⎽␊␍'← 1)← ('⎻⎼⎺⎻␤≤┌▒│␋⎽'← 1)← ('␌⎺⎽├↑␊°°␊␌├␋┴␊┼␊⎽⎽'← 1)← ('␋└⎻┌␊└␊┼├▒├␋⎺┼'← 1)← ('⎻⎼⎺␤␋␉␋├␋⎺┼'← 1)← ('
␋┼␍␋°°␊⎼␊┼␌␊'← 1)← ('└␋␌⎼⎺␉␋␌␋␍␊'← 1)← ('⎽▒°␊'← 1)← ('┬␋├␤'← 1)← ('␋┼␍␋°°␊⎼␊┼├'← 1)← ('⎻⎼⎺└␋⎽␌┤␋├≤'← 1)← ('⎽␊│'← 1)← ('␉␋⎺┌⎺±␋␌↑IRIS'← 1)← ('␋┼°┌▒└└▒├⎺⎼≤'← 1)← ('⎻▒├␤⎺±␊┼␊⎽␋⎽'← 1)← ('␋└└┤┼␊'← 1)← ('└␊␌␤▒┼␋⎽└'← 1)← ('⎼␊␌⎺┼⎽├␋├┤├␋⎺┼'← 1)← ('␋└└┤┼⎺┌⎺±␋␌▒┌'← 1)← ('⎼␊⎽⎻⎺┼⎽␊'← 1)← ('⎼␊▒␌├␋⎺┼'← 1)← ('├⎼▒┼⎽⎻
┌▒┼├↑IRIS'← 1)← ('␌⎺┼␍␋├␋⎺┼'← 1)← ('IRIS'← 1)← ('⎽≤┼␍⎼⎺└␊'← 1)← ('⎻▒⎼▒␍⎺│␋␌▒┌'← 1)← ('┐▒⎻⎺⎽␋↑⎽▒⎼␌⎺└▒↑␋⎼␋⎽'← 1)← ('⎻└┌↑␋⎼␋⎽'← 1)← ('├␉↑␋⎼␋⎽'← 1)← ('┼▒├▒┌␋≥┤└▒␉'← 1)← ('␤␋┴↑␋⎼␋⎽'← 1)← ('├┼°↑▒┌⎻␤▒ ▒┼├▒±⎺┼␋⎽├⎽'← 1)← ('␋┼├␊⎼┌␊┤┐␋┼↑12'← 1)← ('├ ␌␊┌┌ ␊┼␌␊⎻␤▒┌␋├␋⎽'← 1)← ('├␤▒┌␋␍⎺└␋␍␊'← 1)← ('␋└└┤┼␊ ⎼␊␌⎺┼⎽├␋├
┤├␋⎺┼ ␋┼°┌▒└└▒├⎺⎼≤ ⎽≤┼␍⎼⎺└␊'← 1)← ('▒┌├'← 1)← ('⎻┼␊┤└⎺␌≤⎽├␋⎽ ␌▒⎼␋┼␋␋'← 1)← ('▒⎼├ ├␤␊⎼▒⎻≤'← 1)← ('␊⎺⎽␋┼⎺⎻␤␋┌␋▒ ▒┼␍ ⎽≤⎽├␊└␋␌ ⎽≤└⎻├⎺└⎽'← 1)← ('␍⎼┤± ␤≤⎻␊⎼⎽␊┼⎽␋├␋┴␋├≤ ⎼␊▒␌├␋⎺┼'← 1)← ('└␋┼⎺␌≤␌┌␋┼␊'← 1)← ('├┤└⎺⎼ ┼␊␌⎼⎺⎽␋⎽ °▒␌├⎺⎼↑▒┌⎻␤▒'← 1)← ('⎻⎼␊␍┼␋⎽⎺┼␊'← 1)← ('␌␍4→ ├ ␌␊┌┌ ⎼␊␌⎺┴␊⎼≤'← 1)← ('┼⎺␍␊ ␊│␌␋⎽␋⎺┼'← 1)
← ('├⎺␌␋┌␋≥┤└▒␉'← 1)← ('␤␊⎻▒├␋├␋⎽ ␌'← 1)← ('┼⎽▒␋␍⎽'← 1)← ('├┤␉␊⎼␌┤┌⎺⎽␋⎽'← 1)← ('⎽▒⎼␌⎺␋␍⎺⎽␋⎽'← 1)← ('┐⎽↑␋⎼␋⎽'← 1)← ('±┌┤␌⎺␌⎺⎼├␋␌⎺␋␍⎽'← 1)← ('␌␋⎼⎼␤⎺⎽␋⎽'← 1)← ('⎻└┌┌↑␋⎼␋⎽'← 1)← ('␤␊⎻▒├␋␌ ␍␊␌⎺└⎻␊┼⎽▒├␋⎺┼'← 1)← ('▒┌▒┼␋┼␊ ▒└␋┼⎺├⎼▒┼⎽°␊⎼▒⎽␊'← 1)← ('└┤┌├␋⎻┌␊ ⎽␌┌␊⎼⎺⎽␋⎽'← 1)← ('┼␊␌⎼⎺├␋≥␋┼± °▒⎽␌␋␋├␋⎽'← 1)← ('␤␌┴↑
⎼┼▒'← 1)← ('␍␊│▒└␊├␤▒⎽⎺┼␊'← 1)← ('⎽┤⎼±␋␌▒┌ ␍⎼▒␋┼▒±␊'← 1)← ("±⎼▒┴␊'⎽ ␍␋⎽␊▒⎽␊"← 1)← ('␉␌± ␋└└┤┼␋≥▒├␋⎺┼'← 1)← ('␍⎼␊⎽⎽␋┼±'← 1)← ('␤▒␊└⎺⎻␤␋┌┤⎽↑␋┼°┌┤␊┼≥▒␊'← 1)← ('␋┼°␊␌├␋⎺┤⎽↑␍␋⎽␊▒⎽␊'← 1)← ('├┤␉␊⎼␌┤┌⎺⎽␋⎽↑▒⎽⎽⎺␌␋▒├␊␍↑␋└└┤┼␊↑⎼␊␌⎺┼⎽├␋├┤├␋⎺┼↑␋┼°┌▒└└▒├⎺⎼≤↑⎽≤┼␍⎼⎺└␊'← 1)← ('└≤␌⎺␉▒␌├␊⎼␋┤└↑␉⎺┴␋⎽↑␉▒␌␋┌┌┤⎽↑␌▒┌└␊├├␊↑±┤␊
⎼␋┼'← 1)← ('␤␋┴↑␋┼°␊␌├␋⎺┼'← 1)← ('␋┼°┌┤␊┼≥▒↑┴␋⎼┤⎽'← 1)← ('⎽├⎼␊⎻├⎺␌⎺␌␌┤⎽↑⎻┼␊┤└⎺┼␋▒␊'← 1)← ('⎼␊⎽⎻␋⎼▒├⎺⎼≤↑┴␋⎼┤⎽'← 1)← ('␌⎺⎼⎺┼▒┴␋⎼┤⎽'← 1)← ('▒␋␍⎽↑␍␊°␋┼␋┼±↑⎺⎻⎻⎺⎼├┤┼␋⎽├␋␌↑␋┼°␊␌├␋⎺┼'← 1)← ('⎽├▒⎻␤≤┌⎺␌⎺␌␌┤⎽↑▒┤⎼␊┤⎽'← 1)← ('␉▒␌├␊⎼␋▒┌↑⎻┼␊┤└⎺┼␋▒'← 1)← ('┐▒⎻⎺⎽␋↑⎽▒⎼␌⎺└▒'← 1)← ('▒┼├␋⎼␊├⎼⎺┴␋⎼▒┌↑├␤␊⎼▒⎻≤'← 1)← ('⎼␤␋┼⎺┴
␋⎼┤⎽'← 1)← ('␋└└┤┼⎺⎼␊␌⎺┼⎽├␋├┤├␋⎺┼↑␋┼°┌▒└└▒├⎺⎼≤↑⎽≤┼␍⎼⎺└␊'← 1)← ('␤⎺⎽⎻␋├▒┌↑▒␍└␋⎽⎽␋⎺┼'← 1)← ('└⎺⎼├▒┌␋├≤'← 1)← ('⎼␊⎽⎻␋⎼▒├⎺⎼≤↑␍␋⎽␊▒⎽␊'← 1)← ('⎺┤├⎻▒├␋␊┼├'← 1)← ('␋┌┌┼␊⎽⎽'← 1)← ('┴▒␌␌␋┼▒├␋⎺┼'← 1)← ('⎽␊┴␊⎼␊↑␌▒⎻'← 1)← ('┌┤┼±'← 1)← ('␋└└┤┼⎺┌⎺±≤'← 1)← ('⎻⎼⎺±┼⎺⎽␋⎽'← 1)← ('␌▒⎻'← 1)← ('└␋␌⎼⎺␉␋⎺└␊'← 1)← ('▒␍␤␊⎽␋┼⎽'
← 1)← ('␌⎺┌⎺┼␋≥▒├␋⎺┼'← 1)← ('±▒⎽├⎼␋␌ ␌▒┼␌␊⎼'← 1)← ('┴▒␌A'← 1)← ('▒┼├␋␉␋⎺├␋␌ ├␤␊⎼▒⎻≤'← 1)← ('⎻␊⎻├␋␌ ┤┌␌␊⎼'← 1)← ('␋└└┤┼⎺└⎺␍┤┌▒├⎺⎼≤ ␊°°␊␌├⎽'← 1)← ('└▒┌├ ┌≤└⎻␤⎺└▒'← 1)← ('␌▒±A'← 1)← ('┤⎼␊▒⎽␊'← 1)← ('±▒⎽├⎼␋├␋⎽'← 1)← ('°┌▒±␊┌┌▒'← 1)← ('±▒⎽├⎼␋␌'← 1)← ('⎻␊⎻├␋␌'← 1)← ('␍≤⎽⎻␊⎻⎽␋▒'← 1)← ('┼°↑┐␉'← 1)← ('␋┌↑1▮'←
 1)← ('├┌⎼'← 1)← ('␋⎼⎺┼'← 1)← ('├⎺┌┌↑┌␋┐␊'← 1)← ('└▒┌├'← 1)← ('┌≤└⎻␤⎺└▒'← 1)← ('┤┌␌␊⎼'← 1)← ('␍␊°␋␌␋␊┼␌≤'← 1)← ('▒␍┴▒┼␌␊⎽'← 1)← ('▒┼├␋┴␋⎼▒┌'← 1)← ('␍␊▒├␤⎽'← 1)← ('B'← 1)← ('␌┤⎼␊'← 1)← ('␌␤⎼⎺┼␋␌'← 1)← ('␍␋⎽▒␉␋┌␋├≤'← 1)← ('DNA'← 1)← ('°␋␉⎼⎺⎽␋⎽'← 1)← ('┌␊┴␊┌⎽'← 1)← ('⎻␊⎼␋┼▒├▒┌'← 1)← ('␉␋⎺⎻⎽␋␊⎽'← 1)← ('A
LT'← 1)← ('⎻␤▒⎽␊'← 1)← ('┌␋┴␊⎼'← 1)← ('␤␋±␤'← 1)← ('▒␉⎽␊┼␌␊'← 1)← ('␋┼°▒┼├⎽'← 1)← ('␋└└┤┼⎺├⎺┌␊⎼▒┼├'← 1)← ('␉'← 1)← ('⎺°'← 1)← ('⎺⎼'← 1)← ('⎼␊⎻┌␋␌▒├␋⎺┼'← 1)← ('⎽┴⎼'← 1)← ('▒⎽┤┼▒⎻⎼␊┴␋⎼'← 1)← ('␌'← 1)← ('⎽⎺°⎺⎽␉┤┴␋⎼'← 1)← ('⎻⎼⎺├␊▒⎽␊'← 1)← ('␋┼␤␋␉␋├⎺⎼'← 1)← ('⎽┤°°␋│'← 1)← ('±␊┼⎺├≤⎻␊⎽'← 1)← ('┌␊␍␋⎻▒⎽┴␋⎼'← 
1)← ('±┌␊␌▒⎻⎼␊┴␋⎼'← 1)← ('⎻▒⎼▒├▒⎻⎼␊┴␋⎼'← 1)← ('␌┌▒⎽⎽'← 1)← ('⎻␊±↑␋°┼↑▒┌⎻␤▒'← 1)← ('␍▒▒⎽'← 1)← ('⎽␋└␊⎻⎼␊┴␋⎼'← 1)← ('▒±␊┼├⎽'← 1)← ('⎻⎺┌≤└␊⎼▒⎽␊'← 1)← ('┴␊┌⎻▒├▒⎽┴␋⎼'← 1)← ('⎼␋␉▒┴␋⎼␋┼'← 1)← ('├▒⎼±␊├␋┼±'← 1)← ('⎻⎼⎺␌␊⎽⎽␋┼±'← 1)← ('⎻⎼⎺├␊␋┼'← 1)← ('⎼␋├⎺┼▒┴␋⎼↑⎺└␉␋├▒⎽┴␋⎼'← 1)← ('┴␋⎼▒┌'← 1)← ('⎺└␉␋├▒⎽┴␋⎼'← 1)← (
'±⎼▒≥⎺⎻⎼␊┴␋⎼'← 1)← ('┴⎺│␋┌▒⎻⎼␊┴␋⎼'← 1)← ('⎻▒⎼␋├▒⎻⎼␊┴␋⎼'← 1)← ('␊┌␉▒⎽┴␋⎼'← 1)← ('IL↑8'← 1)← ('±┌┤␌⎺␌⎺⎼├␋␌⎺␋␍'← 1)← ('IL↑2'← 1)← ('IL↑1'← 1)← ('┼␊┤├⎼⎺⎻␤␋┌␋␌ ┌␊┤┐⎺␌≤├⎺⎽␋⎽'← 1)← ('┌≤└⎻␤⎺␌≤├␊⎽'← 1)← ('▒┼├␋⎼␤␊┤└▒├␋␌'← 1)← ('␊⎺⎽␋┼⎺⎻␤␋┌⎽'← 1)← ('IL↑6'← 1)← ('G↑M CSF'← 1)← ('␍␋⎽␊▒⎽␊↑└⎺␍␋°≤␋┼±'← 1)← ('▒┼├␋↑␋┼°
┌▒└└▒├⎺⎼≤'← 1)← ('┌≤└⎻␤⎺⎻␊┼␋▒'← 1)← ('␌┌⎺┼▒┌ ␍␊┌␊├␋⎺┼'← 1)← ('␋┼°␊␌├␋⎺┼ ⎼␋⎽┐'← 1)← ('└│├'← 1)← ('␋┼°␊␌├␋⎺┤⎽ ␌⎺└⎻┌␋␌▒├␋⎺┼⎽'← 1)← ('▒┤├⎺␋└└┤┼␊ ␍␋⎽⎺⎼␍␊⎼⎽'← 1)← ('␋┼°┌▒└└▒├⎺⎼≤ ␍␋⎽␊▒⎽␊⎽'← 1)← ('└≤␌⎺␉▒␌├␊⎼␋▒┌ ␋┼°␊␌├␋⎺┼⎽'← 1)← ('⎽␊⎼␋⎺┤⎽ ␋┼°␊␌├␋⎺┼⎽'← 1)← ('⎼▒┼␍⎺└␋≥␊␍ ␌⎺┼├⎼⎺┌┌␊␍ ├⎼␋▒┌⎽'← 1)← ('⎺⎻⎻⎺⎼├┤┼␋⎽├␋␌ ␋
┼°␊␌├␋⎺┼⎽'← 1)← ('°┤┼±▒┌ ␋┼°␊␌├␋⎺┼⎽'← 1)← ('└␊├▒↑▒┼▒┌≤⎽␊⎽'← 1)← ('┴␋⎼▒┌ ␋┼°␊␌├␋⎺┼⎽'← 1)← ('VZV'← 1)← ('MS'← 1)← ('S1P ⎼␊␌␊⎻├⎺⎼ └⎺␍┤┌▒├⎺⎼⎽'← 1)← ('CD52'← 1)← ('°␋┼±⎺┌␋└⎺␍'← 1)← ('HSV'← 1)← ('␋└└┤┼⎺├␤␊⎼▒⎻≤'← 1)← ('T≤⎼⎺⎽␋┼␊ ┐␋┼▒⎽␊ ␋┼␤␋␉␋├⎺⎼⎽'← 1)← ('┌≤└⎻␤⎺␌≤├⎺⎻␊┼␋▒'← 1)← ('␋␉⎼┤├␋┼␋␉'← 1)← ('HCV'← 1)← ('
PML'← 1)← ('TNF↑▒┌⎻␤▒'← 1)← ('T ┌≤└⎻␤⎺␌≤├␊ ␍␊⎻┌␊├␋⎺┼'← 1)← ('├␊└⎻␊⎼▒├┤⎼␊'← 1)← ('┬␊▒├␤␊⎼'← 1)← ('┴␊␌├⎺⎼⎽'← 1)← ('⎽├⎺⎼└⎽'← 1)← ('␤␊▒┌├␤'← 1)← ('°┌⎺⎺␍⎽'← 1)← ('┼▒├┤⎼▒┌'← 1)← ('└⎺⎽─┤␋├⎺␊⎽'← 1)← ('␍␋⎽▒⎽├␊⎼⎽'← 1)← ('┬␋┌␍°␋⎼␊⎽'← 1)← ('␋└⎻▒␌├'← 1)← ('┬▒├␊⎼␉⎺⎼┼␊'← 1)← ('┼⎺┼┴␊␌├⎺⎼↑␉⎺⎼┼␊'← 1)← ('⎼␊⎽␊▒⎼␌␤'← 1)←
 ('␉┌⎺⎺␍ ⎻⎼⎺␍┤␌├⎽'← 1)← ('└␋␌⎼⎺␉␊'← 1)← ('▒⎽≤└⎻├⎺└▒├␋␌'← 1)← ('␌␋⎼␌┤┌▒├⎺⎼≤ ⎺┴␊⎼┌⎺▒␍'← 1)← ('ARDS'← 1)← ('⎽␌␋␊┼␌␊'← 1)← ('␋└└┤┼␋≥▒├␋⎺┼'← 1)← ('⎽├▒├␋⎽├␋␌⎽'← 1)← ('␋└└┤┼⎺␍␊°␋␌␋␊┼␌≤'← 1)← ('␤␋⎽├⎺⎼≤'← 1)← ('±⎼▒°├ ┴␊⎼⎽┤⎽ ␤⎺⎽├ ␍␋⎽␊▒⎽␊'← 1)← ('└␊␍␋␌␋┼␊'← 1)← ('└⎺␍␊┌␋┼±'← 1)← ('␍▒├▒'← 1)← ('°⎺⎼␊␌▒⎽├␋┼±'← 1)← 
('├⎼▒┼⎽°┤⎽␋⎺┼↑⎼␊┌▒├␊␍'← 1)← ('␍⎺┼⎺⎼'← 1)← ('▒┼▒┌≤⎽␋⎽'← 1)← ('┼┤␌┌␊␋␌'← 1)← ('▒␌␋␍'← 1)← ('⎽␊⎼⎺┌⎺±≤'← 1)← ('␍␊├␊␌├␋⎺┼'← 1)← ('├␊␌␤┼␋─┤␊'← 1)← ('▒┼├␋±␊┼'← 1)← ('▒⎽⎽⎺␌␋▒├␊␍'← 1)← ('␊┼≥≤└␊'← 1)← ('␋└└┤┼⎺▒⎽⎽▒≤⎽'← 1)← ('␤␊⎻▒├␋├␋⎽ ␊'← 1)← ('␉▒␌├␊⎼␋▒'← 1)← ('␌␤▒±▒⎽ ␍␋⎽␊▒⎽␊'← 1)← ('␉▒␉␊⎽␋⎺⎽␋⎽'← 1)← ('␤├┌┴'← 1
)← ('⎽⎺␋┌↑├⎼▒┼⎽└␋├├␊␍'← 1)← ('▒┌┌␊⎼±␋␌'← 1)← ('␤␊┌└␋┼├␤␋▒⎽␋⎽'← 1)← ('└⎺⎼␉␋␍␋├≤'← 1)← ('␤␊┌└␋┼├␤⎽'← 1)← ('⎼␋┴␊⎼ ␉┌␋┼␍┼␊⎽⎽'← 1)← ('┌≤└⎻␤▒├␋␌'← 1)← ('⎽␌␤␋⎽├⎺⎽⎺└␋▒⎽␋⎽'← 1)← ('▒┼␍↑␌┌␊▒⎼'← 1)← ('°┌┤┐␊⎽'← 1)← ('␋└⎻⎼⎺┴␊└␊┼├'← 1)← ('␋┼├␊⎼┴␊┼├␋⎺┼⎽'← 1)← ('├⎼␊└▒├⎺␍␊⎽'← 1)← ('␉┌␋┼␍┼␊⎽⎽'← 1)← ('└⎺⎽─┤␋├⎺␊'← 1)← ('
␌┌␊▒┼┌␋┼␊⎽⎽'← 1)← ('°▒␌␋▒┌'← 1)← ('⎽┌▒⎽␤'← 1)← ('▒┼├␋└␋␌⎼⎺␉␋▒┌'← 1)← ('⎻⎼⎺±⎼▒└└␊'← 1)← ('┴␊␌├⎺⎼'← 1)← ('├▒⎼±␊├␊␍'← 1)← ('└▒␌⎼⎺┌␋␍␊'← 1)← ('␤≤±␋␊┼␊'← 1)← ('├⎼▒␌␤⎺└▒'← 1)← ('°␋┌▒⎼␋▒⎽␋⎽'← 1)← ('␊␍┤␌▒├␋⎺┼'← 1)← ('⎻▒⎼▒⎽␋├␋␌'← 1)← ('⎽┤⎼┴␊␋┌┌▒┼␌␊'← 1)← ('␌⎺└└┤┼␋├≤↑␍␋⎼␊␌├␊␍'← 1)← ('┬▒├␊⎼'← 1)← ('␌⎺┼├⎼⎺┌'← 1)
← ('⎺┼␌␤⎺␌␊⎼␌␋▒⎽␋⎽'← 1)← ('E⎼≤⎽␋⎻␊┌⎺├␤⎼␋│'← 1)← ('␋┼├⎼␋┼⎽␋␌ ⎼␊⎽␋⎽├▒┼␌␊'← 1)← ('L▒␌├⎺␉▒␌␋┌┌┤⎽'← 1)← ('L␊┤␌⎺┼⎺⎽├⎺␌'← 1)← ('P␊␍␋⎺␌⎺␌␌┤⎽'← 1)← ('└␊├␤␋␌␋┌┌␋┼↑⎼␊⎽␋⎽├▒┼├ ⎽├▒⎻␤≤┌⎺␌⎺␌␌␋'← 1)← ('␍⎺⎽␋┼±'← 1)← ('␌┌␋┼␍▒└≤␌␋┼'← 1)← ('␍⎺│≤␌≤␌┌␋┼␊'← 1)← ('C⎺NS'← 1)← ('─┤␋┼├⎺┌⎺┼␊⎽'← 1)← ('⎽├▒⎻␤≤┌⎺␌⎺␌␌␋'← 1)← ('├␊├⎼▒␌
≤␌┌␋┼␊'← 1)← ('⎼␊┌▒⎻⎽␊'← 1)← ('␍┤⎼▒├␋⎺┼'← 1)← ('⎼▒┼␍⎺└␋≥␊␍ ├⎼␋▒┌'← 1)← ('⎺┤├␌⎺└␊'← 1)← ('┴▒┼␌⎺└≤␌␋┼ ├⎼⎺┤±␤ ␌⎺┼␌␊┼├⎼▒├␋⎺┼⎽'← 1)← ('␌┌␋┼␋␌▒┌ ⎻⎼▒␌├␋␌␊ ±┤␋␍␊┌␋┼␊⎽'← 1)← ('⎻␤▒⎼└▒␌⎺┐␋┼␊├␋␌⎽'← 1)← ('⎻⎼⎺⎽⎻␊␌├␋┴␊ ⎽├┤␍≤'← 1)← ('±┤␋␍␊┌␋┼␊⎽'← 1)← ('└␊├▒↑▒┼▒┌≤⎽␋⎽'← 1)← ('⎼␊├⎼⎺⎽⎻␊␌├␋┴␊ ␌⎺␤⎺⎼├'← 1)← ('␋┼┴▒⎽␋┴␊'← 1)
← ('┌⎺┼±↑├␊⎼└ ⎺┤├␌⎺└␊⎽'← 1)← ('⎻▒⎼├␋▒┌ ├⎼␊▒├└␊┼├'← 1)← ('⎺⎼▒┌ ┴␊⎼⎽┤⎽ ␋┼├⎼▒┴␊┼⎺┤⎽'← 1)← ('▒┼├␋␉␋⎺├␋␌ ├⎼␊▒├└␊┼├'← 1)← ('⎽≤⎽├␊└␋␌'← 1)← ('␌▒┼␍␋␍␋▒⎽␋⎽'← 1)← (' C▒┼␍␋␍▒ ±┌▒␉⎼▒├▒'← 1)← ('␌▒┼␍␋␍▒'← 1)← ('C↓ ├⎼⎺⎻␋␌▒┌␋⎽'← 1)← ('␊␌␤␋┼⎺␌▒┼␍␋┼⎽'← 1)← ('C↓ ⎻▒⎼▒⎻⎽␋┌⎺⎽␋⎽'← 1)← ('▒┼├␋°┤┼±▒┌⎽'← 1)← ('C↓ ▒┌␉␋␌▒┼⎽'← 1)
← ('␋┼├⎼␋┼⎽␋␌'← 1)← ('C↓ ▒┤⎼␋⎽'← 1)← ('▒␌─┤␋⎼␊␍'← 1)← ('▒┼├␋└␋␌⎼⎺␉␋▒┌⎽'← 1)← ('▒┼␋␍┤┌▒°┤┼±␋┼'← 1)← ('␌▒┼␍␋␍␊└␋▒'← 1)← ('┼├└'← 1)← ('└▒␌'← 1)← ('␌␊°└␊├▒≥⎺┌␊'← 1)← ('└⎺│␋°┌⎺│▒␌␋┼'← 1)← ('⎽┤┌°▒└␊├␤⎺│▒≥⎺┌␊'← 1)← ('␌␋⎻⎼⎺°┌⎺│▒␌␋┼'← 1)← ('├␊␍␋≥⎺┌␋␍'← 1)← ('├␋±␊␌≤␌┌␋┼␊'← 1)← ('┌␊┴⎺°┌⎺│▒␌␋┼'← 1)← ('▒≥␋├␤⎼⎺└≤␌
␋┼'← 1)← ('°┌┤⎺⎼⎺─┤␋┼⎺┌⎺┼␊⎽'← 1)← ('⎼␋°▒␉┤├␋┼'← 1)← ('␊│├⎼▒⎻┤┌└⎺┼▒⎼≤ ␋┼°␊␌├␋⎺┼⎽'← 1)← ('␌⎺┼├▒└␋┼▒├␋⎺┼'← 1)← ('┌┤┼± ␍␋⎽␊▒⎽␊'← 1)← ('␌≤⎽├␋␌ °␋␉⎼⎺⎽␋⎽'← 1)← ('␉␋⎺°␋┌└'← 1)← ('⎻⎼⎺⎽├␤␊├␋␌ ␍␊┴␋␌␊⎽'← 1)← ('␌┤┌├┤⎼␊ ┼␊±▒├␋┴␊ ␊┼␍⎺␌▒⎼␍␋├␋⎽'← 1)← ('␌▒⎼␍␋⎺↑⎻┤┌└⎺┼▒⎼≤ ␉≤⎻▒⎽⎽'← 1)← ('┌┤┼± ␍␊␌┌␋┼␊'← 1)← ('▒┼├␋└␋␌⎼⎺␉␋▒
┌ ├␤␊⎼▒⎻≤'← 1)← ('└≤␌⎺␉▒␌├␊⎼␋┤└ ␌␤␋└▒␊⎼▒'← 1)← ('␤␊▒⎼├'← 1)← ('␍␊┴␋␌␊⎽'← 1)← ('⎻⎼⎺┌⎺┼±␊␍'← 1)← ('└≤␌⎺␉▒␌├␊⎼␋┤└'← 1)← ('␌␤␋└▒␊⎼▒'← 1)← ('␌▒⎼␍␋▒␌'← 1)← ('␤␊▒├␊⎼↑␌⎺⎺┌␊⎼'← 1)]

R␊⎽┤┌├⎽:
π"ISBN": "978↑3↑▮3▮↑36965↑1"← "▒┤├␤⎺⎼": ["I↓ W↓ F⎺┼±"]← "⎻┤␉┌␋⎽␤␊⎼": "S⎻⎼␋┼±␊⎼ N▒├┤⎼␊ S┬␋├≥␊⎼┌▒┼␍ AG"← "├␋├┌␊": "E└␊⎼±␋┼± I┼°␊␌├␋⎺┤⎽ D␋⎽␊▒⎽␊⎽ ⎺° ├␤␊ 21⎽├ C␊┼├┤⎼≤"← "⎻┤␉┌␋⎽␤D▒├␊": "2▮2▮"← "°␋┌␊S␋≥␊": 1▮462▮7← "└␊├▒␍▒├▒V␊⎼⎽␋⎺┼": 1↓1← "┐␊≤┬⎺⎼␍⎽": [["␋┼°␊␌├␋⎺┼"← 13]← ["├⎼␊▒├└␊┼├"← 1▮]← ["␋┼°␊␌├␋⎺┼⎽"← 6]←
 ["⎻⎼␊┴␊┼├␋⎺┼"← 4]← ["␤␋┴"← 4]← ["┴▒␌␌␋┼␊"← 4]← ["├⎼▒┼⎽└␋⎽⎽␋⎺┼"← 4]← ["├␤␊⎼▒⎻≤"← 4]← ["⎽├␊⎼⎺␋␍⎽"← 4]← ["␊⎻␋␍␊└␋⎺┌⎺±≤"← 4]← ["␤␊⎻▒├␋├␋⎽"← 4]← ["±┌⎺␉▒┌"← 4]← ["┴␋⎼┤⎽"← 4]← ["␍␋⎽␊▒⎽␊⎽"← 4]← ["␉┌⎺⎺␍"← 4]← ["┴▒┼␌⎺└≤␌␋┼"← 4]← ["⎻⎼␊┴▒┌␊┼␌␊"← 3]← ["⎼␊⎽␋⎽├▒┼␌␊"← 3]← ["␍␋⎽␊▒⎽␊"← 3]← ["▒┼├␋␉␋⎺├␋␌⎽"← 3]← ["␋┼°┌▒
└└▒├␋⎺┼"← 3]← ["␉␋⎺┌⎺±␋␌⎽"← 3]← ["├⎼▒┼⎽°┤⎽␋⎺┼"← 3]← ["⎽┤⎼±␊⎼≤"← 3]← ["MRSA"← 3]]£
⎻⎼⎺␌␊⎽⎽␊␍ 1▮462▮7 ␌␤▒⎼▒␌├␊⎼⎽ ␋┼ ▮:▮5:▮1↓▮85▮88
⎻⎼⎺␌␊⎽⎽␋┼± ␋┼├␊⎼└␊␍␋▒├␊/C/C┤⎼⎼␊┼├ T⎼␊┼␍⎽ ␋┼ C⎺┼├⎼▒⎽├␋┴␊ L␋┼±┤␋⎽├␋␌⎽ ↑ M↓ G⎺┼≥▒┌␊≥← ␊├ ▒┌↓← (J↓ B␊┼┘▒└␋┼⎽← 2▮▮8) WW↓├│├ ┬␋├␤ ⎽␋≥␊: 881▮7▮← ├␋└␊⎺┤├ 28▮← ⎽├▒⎼├␋┼± ▒├ 13:16:53

⎻⎼⎺␌␊⎽⎽␋┼± ␋┼├␊⎼└␊␍␋▒├␊/C/C┤⎼⎼␊┼├ T⎼␊┼␍⎽ ␋┼ C⎺┼├⎼▒⎽├␋┴␊ L␋┼±┤␋⎽├␋␌⎽ ↑ M↓ G⎺┼≥▒┌␊≥← ␊├ ▒┌↓← (J↓ B␊┼┘▒└␋┼⎽← 2▮▮8) WW↓├│├
3▮▮▮▮← 6▮▮▮▮← 9▮▮▮▮← 12▮▮▮▮← 15▮▮▮▮← 18▮▮▮▮← 21▮▮▮▮← 24▮▮▮▮← 27▮▮▮▮← 3▮▮▮▮▮← 33▮▮▮▮← 36▮▮▮▮← 39▮▮▮▮← 42▮▮▮▮← 45▮▮▮▮← 48▮▮▮▮← 51▮▮▮▮← 54▮▮▮▮← 57▮▮▮▮← 6▮▮▮▮▮←

Edit to add some details based on questions in the comments:

  • Both the server and my local devices should be using UTF-8, with the language set to US English (echo $LANG gives en_US.UTF-8).
  • The program is running in Python 3, and using normal print() calls to output to the terminal.
  • ANSI escape sequences for color codes are behaving correctly, all the output is colored exactly as expected.
  • The program is printing a mix of hardcoded information but also text from documents it reads, and those documents may contain unusual or invalid unicode sequences, which is likely what caused the problem
Patronics
  • 125
  • 3
  • 8