SjonHortensius / 3v4l_org

An online php shell
41 stars 6 forks source link

Gracefully handle UTF-8 in Live Preview #8

Open homersimpsons opened 4 months ago

homersimpsons commented 4 months ago

It would be a great addition to handle UTF-8 correctly in Live Preview.

I wanted to diagnose some UTF-8 related things but the output is not readable in live-preview: https://3v4l.org/ZsUDp

image

string(14) "μεθοδοσ"

Note that it is readable when pressing "eval();" button: image

Thank you for this awesome project!

SjonHortensius commented 5 days ago

this is caused by encoding issues between either the script>vm or vm>output