SetStrlitStyle

Description

Setup string literal style. With this dialog you can setup string styles and also create a new string immediately at the current location.

The following string styles are defined:

  • C-style (zero-terminated)

  • DOS style ($ terminated)

  • Pascal style (one byte length prefix)

  • Wide pascal (two-byte length prefix)

  • Delphi (four-byte length prefix)

  • Unicode (UTF-16)

  • Unicode pascal style (two-byte length prefix)

  • Unicode wide pascal style (four-byte length prefix)

  • Character terminated

If you select "character terminated" string style then you may specify up to 2 termination characters. The string will be terminated by any of these characters. If the second character is equal to 0, then it is ignored. In IDA Qt you can also set a specific encoding to be used to display the string, or change the defaults for all strings.

String encodings

IDA Qt can display program strings using different encodings. You can specify default encodings for all strings or override the encoding of a specific string.

The following encodings can be used:

  • <default> - the default encoding for this string type (8-bit or 16-bit)

  • <no conversion> - the string bytes are printed using the current system encoding (after translating with XlatAsciiOutput array in the configuration file).

  • Windows codepages (e.g., 866, CP932, windows-1251)

  • Charset names (e.g., Shift-JIS, UTF-8, Big5)

You can add new encodings to the list using the context menu item Insert (Ins hotkey).

On Linux/OS X, you can run "iconv -l" to see the available encodings. Please note that some encodings are not supported on all systems.

Last updated

Was this helpful?