GithubHelp home page GithubHelp logo

Comments (3)

Sn3akyP3t3 avatar Sn3akyP3t3 commented on July 19, 2024 1

@alexanderankin Gave it a shot with PowerShell and got different results. Looks to be similar, but with a different character set.

PS C:\Users\User\Downloads\mqtt-cli-4.7.3-win> chcp 65001
Active code page: 65001
PS C:\Users\User\Downloads\mqtt-cli-4.7.3-win> .\mqtt-cli.exe

�[1mUsage:�[21m�[0m  �[1m�[33mmqtt�[39m�[21m�[0m [�[3m�[33m-hV�[39m�[23m�[0m] { pub | sub | shell | test | hivemq }

MQTT Command Line Interpreter.

�[1mOptions:�[21m�[0m
  �[3m�[33m-h�[39m�[23m�[0m, �[3m�[33m--help�[39m�[23m�[0m      Show this help message and exit.
  �[3m�[33m-V�[39m�[23m�[0m, �[3m�[33m--version�[39m�[23m�[0m   Print version information and exit.

�[1mCommands:�[21m�[0m
  �[1m�[33mpub�[39m�[21m�[0m, �[1m�[33mpublish�[39m�[21m�[0m    Publish a message to a list of topics.
  �[1m�[33msub�[39m�[21m�[0m, �[1m�[33msubscribe�[39m�[21m�[0m  Subscribe an MQTT client to a list of topics.
  �[1m�[33mshell�[39m�[21m�[0m, �[1m�[33msh�[39m�[21m�[0m       Starts MqttCLI in shell mode, to enable interactive mode with further sub commands.
  �[1m�[33mtest�[39m�[21m�[0m            Tests the specified broker on different MQTT feature support and prints the results
  �[1m�[33mhivemq�[39m�[21m�[0m          HiveMQ Command Line Interpreter.
  �[1m�[33mswarm�[39m�[21m�[0m           HiveMQ Swarm Command Line Interpreter.

However, if I right click on the folder (Explorer) and then select the option to "Open In Terminal" it opens up a PowerShell terminal and there's zero gibberish output when running it from that perspective. I have no idea what is different with the terminal offered in that way then what PowerShell or CMD.exe are doing on their own.

from mqtt-cli.

edge-ai4cv avatar edge-ai4cv commented on July 19, 2024

I got the same output as above.

I installed mqtt-cli version 4.8.2-win and os is win11.
Java version:
openjdk 16.0.2 2021-07-20
OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing)

from mqtt-cli.

alexanderankin avatar alexanderankin commented on July 19, 2024

does the issue persist when you reset your terminal to use utf8 encoding?

how to do that

on windows the command is described here, though if you are not on powershell, you will probably have to type chcp then press <Tab> to see the right completion (maybe .com? - dont remember off hand), and then a space, followed by the unicode code 65001. on powershell, chcp 65001 should work.

from mqtt-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.