loadtest icon indicating copy to clipboard operation
loadtest copied to clipboard

encode html entitites

Open jcpsantiago opened this issue 4 years ago • 2 comments

Fixes https://github.com/tmobile/loadtest/issues/10

Does not add new dependencies and tests are green.

jcpsantiago avatar Apr 03 '20 07:04 jcpsantiago

I have a question on this one. Is the list of symbols you have to encode sufficient? I think in theory there are more than that--I remember dealing with this problem before and using the textutils package for it (see here). That said, I like that your code doesn't have any dependencies so if that means we don't get every possible symbol that's probably fine. If you could just think about it that would be great!

jnolis avatar Apr 10 '20 14:04 jnolis

I tried textutils first during debugging and used it to encode every symbol. JMeter actually complained when I encoded everything 🤷

In https://github.com/tmobile/loadtest/issues/10 I posted the results of pasting every symbol on my ANSI keyboard and JMeter doesn't seem to care about all of them, only the ones I encoded. Maybe it's an XML thing? I don't know :D

Sorry TL;DR: I chose these encodings based on what JMeter does, so it should be safe.

jcpsantiago avatar Apr 11 '20 08:04 jcpsantiago