This is our old Q&A Site. Please post any new questions and answers at


I have a LUA script that throws the following error:

**(tshark.exe:16500): ERROR**: Title for preference tsumcli.header isn't printable UTF-8.

The script line that tshark is complaining about is:

tsumcli.prefs.header = Pref.statictext("TRANSUM r14\n\n", "See the online manual for full details.")

If I remove the two new line characters I don't get the problem. Interestingly, I don't get the problem with the following line either:

tsumcli.prefs.tcpports = Pref.range("Output RTE data for these TCP service ports", "25,80,443,1433", "Add and remove ports numbers separated by commas\nRanges are not supported", 65535)

Is \n illegal or is this a bug?

Thanks and regards...Paul

asked 02 Aug '17, 10:15

PaulOfford's gravatar image

accept rate: 11%

\n isn't a printable UTF-8 character; control characters aren't printable characters. Newlines, tabs, etc. do not belong in preference titles.

If I remove the two new line characters I don't get the problem.

That is the right thing to do - remove the non-printable characters.

permanent link

answered 02 Aug '17, 11:22

Guy%20Harris's gravatar image

Guy Harris ♦♦
accept rate: 19%

Specifically, it was this commit from Gerald that made all non-printable characters illegal, so no it's not a bug but intentional.

(02 Aug '17, 11:30) cmaynard ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Aug '17, 10:15

question was seen: 872 times

last updated: 02 Aug '17, 11:30

p​o​w​e​r​e​d by O​S​Q​A