Weird character on the log
Closed this issue · 4 comments
Sorry not sure if this is an actual problem, or just something missing some configuration on my end, or ConEmu making things not work...
On my console I see the outputs like:
main ÔÇ║ ####################
main ÔÇ║ #### NEW START #####
main ÔÇ║ ###################
Meaning that I get ÔÇ║ instead of the >
Also the output is not in colors.
What could be causing this problems?
Thanks in advance for the support.
Your terminal doesn't support unicode characters.
Ohh ok. Thanks for the heads-up. Gonna see into changing to a different once. Thanks for the answer.
I know this is an old issue, but it seems that it is not simply an issue of the terminal. On Windows, I can put the following code in a file and run it through node directly:
console.log(require('chalk').red('›'))
I get it to print correctly. The character prints, and so does the color:
However, when I require that same file within the main process of my electron app, again using Electron on Windows, I get this:
And, of course, when I force color, I get colors but the character still looks odd:
It seems like this is not an issue with the terminal, but rather with something in Electron. Though, it is worth noting that when I change ›
to the ascii >
, it prints fine:
There might be something to considering using a different character, even if it is just for Windows