Skip to content

[VarDumper] Display BOM characters #47519

@lyrixx

Description

@lyrixx

Hello,

We had a very strange issue, and it was a bit hard to debug (Mind the !==) :

image


TL;DR: there was a BOM (U+FEFF) character in front of the string.


I would be very cool to have the vardumper displaying such characters.
I made a reproducer if it can help:

https://gist.github.com/lyrixx/8fe4a205864855bd23f1c0ec44b6d72d

image


BTW, my IDE warns me about that:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions