Skip to content

Show string as UTF-8 #8

Description

@FranklinYu

Currently non-ascii text is not supported. For example if we have a JSON like

{"®":true}

It would shows

{
  "®": true
}

reason: the registered trade mark sign is encoded in UTF-8 as C2 AE; when Burp see that, it breaks it into two characters C2 and AE. C2 becomes U+00C2 latin capital letter A with circumflex; AE becomes U+00AE registered trade mark sign.

I don’t know the solution, because ITextEditor is supposed to work like this (unless PortSwigger realize this and create ITextEditor.setText(String)). A solution is to migrate away from the default text editor; I understand that this is expensive.

Note that JSON should always be UTF-8. From RFC 8259, section “Character Encoding”:

JSON text exchanged between systems that are not part of a closed
ecosystem MUST be encoded using UTF-8 [RFC3629].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions