Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter terminal window changes color after trying to render nonascii characters #4614

Open
ivalmian opened this issue May 8, 2019 · 0 comments

Comments

@ivalmian
Copy link

ivalmian commented May 8, 2019

Hi I'm running Jupyter 5.7.4 and concerns the Terminal window opened via jupyter notebook app.

I was looking at the nohup output of a flask server running in debugger, after trying to "more" the nohup file the terminal font color changed to purple. Refreshing terminal does not change the color back to the original white. I noticed the more output has some non ascii characters, in particular:

    • [08/May/2019 09:05:54] code 400, message Bad request syntax ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03gËvä<{\x08{ht\x1eF^C\x04¥ÛPZ¾q*\x1a\x87\x84°1"¾@÷ ^x©¸\x0cH;#\x92\x9dD\x1e³õì(j\x8c\x9c-\x83\x1c\xa0MÆÚ^\x82ÀCo+\x00"êê\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00')
      [IP edited out] - - [08/May/2019 09:05:54] "�[1m�[35m��������ü��gËvä<{�{ht�F^C�¥ÛPZ¾q*���°
      1"¾@÷ ^x©¸ H;#��D�³õì(j��-�� MÆÚ^�ÀCo+�"êê������À+À/À,À0̨̩À�À������/�5��[0m" HTTPStatus.BAD_REQUEST -
      [IP edited out] - - [08/May/2019 09:05:54] code 400, message Bad request syntax ('\x16\x03\x01\x00Î\x01\x00\x00Ê\x03\x03w\x91å´\x08Ó©\x9a\x8c×@¤¿\x0c*|þ+\x8ae\xa0\x10É\x8búñi[hßúï\x00\x00\x1c::À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00')
      [IP edited out] - - [08/May/2019 09:05:54] "�[1m�[35m����Î���Ê��w�å´�Ó©��×@¤¿ *|þ+�e �É�úñi[hßúï���::À+À/À,À0̨̩À�À������/�5��[0m" HTTPStatus.BAD_REQUEST -

Properly escaped it is:

(\'\\x16\\x03\\x01\\x02\\x00\\x01\\x00\\x01\xc3\xbc\\x03\\x03g\xc3\x8bv\xc3\xa4<{\\x08{ht\\x1eF^C\\x04\xc2\xa5\xc3\x9bPZ\xc2\xbeq*\\x1a\\x87\\x84\xc2\xb0~1"\xc2\xbe@\xc3\xb7 ^x\xc2\xa9\xc2\xb8\\x0cH;#\\x92\\x9dD\\x1e\xc2\xb3\xc3\xb5\xc3\xac(j\\x8c\\x9c-\\x83\\x1c\\xa0M\xc3\x86\xc3\x9a^\\x82\xc3\x80Co+\\x00"\xc3\xaa\xc3\xaa\\x13\\x01\\x13\\x02\\x13\\x03\xc3\x80+\xc3\x80/\xc3\x80,\xc3\x800\xc3\x8c\xc2\xa9\xc3\x8c\xc2\xa8\xc3\x80\\x13\xc3\x80\\x14\\x00\\x9c\\x00\\x9d\\x00/\\x005\\x00\')\n[IP edited out] - - [08/May/2019 09:05:54] "\x1b[1m\x1b[35m\x16\x03\x01\x02\x00\x01\x00\x01\xc3\xbc\x03\x03g\xc3\x8bv\xc3\xa4<{\x08{ht\x1eF^C\x04\xc2\xa5\xc3\x9bPZ\xc2\xbeq*\x1a\xc2\x87\xc2\x84\xc2\xb0~1"\xc2\xbe@\xc3\xb7 ^x\xc2\xa9\xc2\xb8\x0cH;#\xc2\x92\xc2\x9dD\x1e\xc2\xb3\xc3\xb5\xc3\xac(j\xc2\x8c\xc2\x9c-\xc2\x83\x1c\xc2\xa0M\xc3\x86\xc3\x9a^\xc2\x82\xc3\x80Co+\x00"\xc3\xaa\xc3\xaa\x13\x01\x13\x02\x13\x03\xc3\x80+\xc3\x80/\xc3\x80,\xc3\x800\xc3\x8c\xc2\xa9\xc3\x8c\xc2\xa8\xc3\x80\x13\xc3\x80\x14\x00\xc2\x9c\x00\xc2\x9d\x00/\x005\x00\x1b[0m" HTTPStatus.BAD_REQUEST -\n[IP edited out] - - [08/May/2019 09:05:54] code 400, message Bad request syntax (\'\\x16\\x03\\x01\\x00\xc3\x8e\\x01\\x00\\x00\xc3\x8a\\x03\\x03w\\x91\xc3\xa5\xc2\xb4\\x08\xc3\x93\xc2\xa9\\x9a\\x8c\xc3\x97@\xc2\xa4\xc2\xbf\\x0c*|\xc3\xbe+\\x8ae\\xa0\\x10\xc3\x89\\x8b\xc3\xba\xc3\xb1i[h\xc3\x9f\xc3\xba\xc3\xaf\\x00\\x00\\x1c::\xc3\x80+\xc3\x80/\xc3\x80,\xc3\x800\xc3\x8c\xc2\xa9\xc3\x8c\xc2\xa8\xc3\x80\\x13\xc3\x80\\x14\\x00\\x9c\\x00\\x9d\\x00/\\x005\\x00\')\n[IP edited out] - - [08/May/2019 09:05:54] "\x1b[1m\x1b[35m\x16\x03\x01\x00\xc3\x8e\x01\x00\x00\xc3\x8a\x03\x03w\xc2\x91\xc3\xa5\xc2\xb4\x08\xc3\x93\xc2\xa9\xc2\x9a\xc2\x8c\xc3\x97@\xc2\xa4\xc2\xbf\x0c*|\xc3\xbe+\xc2\x8ae\xc2\xa0\x10\xc3\x89\xc2\x8b\xc3\xba\xc3\xb1i[h\xc3\x9f\xc3\xba\xc3\xaf\x00\x00\x1c::\xc3\x80+\xc3\x80/\xc3\x80,\xc3\x800\xc3\x8c\xc2\xa9\xc3\x8c\xc2\xa8\xc3\x80\x13\xc3\x80\x14\x00\xc2\x9c\x00\xc2\x9d\x00/\x005\x00\x1b

Best,

Ilya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant