I use tshark to produce a packet list with the following command:
Where the output should contain a right arrow showing the packet direction from one port to another it contains the character sequence â┼'
Do I have a preference set incorrectly, or is this expected? Thanks and regards...Paul asked 08 Feb '17, 15:14 PaulOfford showing 5 of 17 show 12 more comments |
What operating system are you using? If it's some flavor of UN*X (this includes, of course, Linux, *BSD, and macOS under all its names), what is the setting of the LANG environment variable?
Good point - I should have said. Windows 10 - English UK.
Do you have a text editor that supports UTF-8 (not UTF-16, but UTF-8)? If so, could you send the output of the command to a file and open it in that file? TShark's output is UTF-8, but Windows doesn't do a very good job of supporting UTF-8 (there is a UTF-8 code page number, but I think a lot of software fails if you make that the code page).
And what shell are you using, cmd.exe, PowerShell, or something third-party, e.g. ConEmu?
What codepage is in use, i.e. what does
chcp
show?Hi Graham, cmd.exe and chcp gave:
When I use cmd.exe (and that codepage is in use for me as well) then I see the arrow in the output.
I'm reasonably confident that didn't always happen as I vaguely remember complaining about it, but I don't know what may have changed, either on my systems or in tshark.
What version of tshark?
v2.2.4-0-gcc3dc1b
What font are you using in cmd.exe? Use cmd.exe window System Menu -> Properties -> Font tab.
Also, is the odd character visible on the console or are you redirecting to a file?
Font setting is Consolas
On the console. If I redirect to a file I get:
I have consolas (for cmd.exe) and see the arrow (Win 10 Pro English UK). Redirecting to a file does break things.
Thinking about it, that may have been my complaint I vaguely remembered.
Last straw to be clutched, what do you have set for the language for non-Unicode programs? Found in Control Panel -> Clock, Language, Region -> Region, Administrative tab.
I have English (United Kingdom).
Yep, same as you - English (United Kingdom)
What happens if you
chcp 65001
?The output changes to →
Strange.
As a quick test, I created a binary file whose contents is:
Originally my codepage was 437, and
"type arrows.hex"
yielded:After a
chcp 65001
and another"type arrows.hex"
, I got:... and
col_append_ports()
is definitely usingUTF8_RIGHTWARDS_ARROW
, so I thought this would work.