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

QR Code problem under screen/xterm #28

Closed
suntong opened this issue Jul 10, 2018 · 4 comments
Closed

QR Code problem under screen/xterm #28

suntong opened this issue Jul 10, 2018 · 4 comments

Comments

@suntong
Copy link

suntong commented Jul 10, 2018

screen is the famous VT100/ANSI terminal emulation under *nix, that allows people to run terminal session on the server, after log off, or even after dis-connect.

However, I found that QR Code is not output correctly under screen.

So under the same terminal, and anything else are the same, within & outside screen will print QR Code differently.

In both case, I have:

DISPLAY='localhost:10.0'
LANG='C'

The only difference is within & outside screen (TERM='screen' or TERM='rxvt-unicode-256color').

Ah~, found my local xterm (TERM='xterm') is having the same problem as well. The QR Code is output as:

â
 â
  â
   â
    â
     â
      â
       â
        â
         â
          â
           â
            â
             â
              â
               â
                â
                 â
                  â
                   â
                    â
                     â
                      â
                       â
                        â
                         â
                          â
                           â
                            â
                             â
                              â

â â
   â
    â
     â
      â
        ââ
          â â  ââ âââ
                     â
                      â â
                         â
                          â
                           â
                            â
                              â
â â   â â   âââ
                 ââ â
                     ââ â   â â
â ââ
    â
     â
      â ââ
          ââ â
              âââ ââ ââ ââ
                          â
                           â
                            â â
ââ
  â
   â
    â
     â
      â
       â
        ââ
          â â ââ
                ââ
                  ââ
                    ââ
                      ââ
                        â
                         â
                          â
                           â
                            â
                             â
                              â
ââ
    â
     âââ
        â â â
               â
                â â
                    ââ ââ â
                           â
                            â â
â ââ
    ââââ
         â  â
             â
               ââââââ â
                       â
                        ââââ
                            â
                             ââ
ââââââââ
        ââ â
            â â
               â
                âââ
                   â ââ
                       ââââ
                            âââ
ââ
   â
    â  â
        ââââ
             ââ â â
                   â
                    â
                     â
                       â  ââ
                             â
                              â
ââ â â â
        â
         ââ
            ââ
              â
                 âââ
                    â
                       â â
                           â ââ
ââ
  â ââââ
        â
         â
          ââââââ
                â
                  âââââââ
                         ââ âââ
âââ
   â
    ââ
      ââ
        â
         âââ
            âââââ  ââ â
                       â
                        â
                            âââ
â â
   â
    â
     â
      â
        âââ
           â
            ââââââ
                  â â
                      ââ
                        â  ââ
                             ââ
â â   â ââââ âââ  â
                   ââ  â
                          ââ
                            â
                              â
â ââ
    â
     â
      â â  ââ ââ
                âââ â
                      âââ
                         âââ
                            ââ
                              â
ââ
  â
   â
    â
     â
      â
       â
        ââ
          â
           ââ
             ââââ
                 ââââ
                     â
                      â
                       âââ
                          âââ
                             ââ

Please verify. thx.

@suntong
Copy link
Author

suntong commented Jul 12, 2018

NVM. Go it working. Chinese env problem.

@suntong suntong closed this as completed Jul 12, 2018
@Ir001
Copy link

Ir001 commented Feb 10, 2023

How to solve this problem? I have the same issue when I use whatsapp-web.js

@reyyzzy
Copy link

reyyzzy commented Feb 22, 2023

same here,got any clue?

@suntong
Copy link
Author

suntong commented Feb 22, 2023

I really cannot remember how I fixed the problem 4 ~ 5 years ago, but I did remember it was a misconfiguration on my end in my Chinese environment -- fixed my own mistake and the problem went away. Now, 4 ~ 5 year has gone by without anyone reporting any problem, so I'd think what you guys having should be a new problem unrelated with mine.

I'd recommend to start with a newly created account with anything default, and the C.utf8 locale under rxvt-unicode using the latest distro, and see if things work there. Else, please open a new issue and give as much details as possible, instead continue with this closed one.

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

3 participants