Skip to content

__char

JMeter __char function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

The char function returns the result of evaluating a list of numbers as Unicode characters. See also __unescape(), below.

This allows one to add arbitrary character values into fields.

NameRequiredDescription
Unicode character number (decimal or 0xhex)YesThe decimal number (or hex number, if prefixed by 0x, or octal, if prefixed by 0) to be converted to a Unicode character.

Examples:

\${__char(13,10)} = \${__char(0xD,0xA)} = \${__char(015,012)} = CRLF

\${__char(165)} = ยฅ (yen)

On this page