I do not see this behavior on my instance.
USER>write $char($ascii("♥"))
♥
USER>write $match("♥","\?")
0
USER>zw $zv
"IRIS for Windows (x86-64) 2024.1.2 (Build 398U) Thu Oct 3 2024 14:01:59 EDT"
What is the value of $ascii("♥") for you? Are you executing this from an IRIS terminal?
Certifications & Credly badges:
Josh has no Certifications & Credly badges yet.
Global Masters badges:
Josh has no Global Masters badges yet.
Followers:
Josh has no followers yet.
Following:
It's interesting that this behaves differently in the Studio output window, but since Studio is deprecated I wouldn't expect anything to come of reporting this. And hopefully this doesn't affect your use-case; you were just trying to test something from within Studio, right?