I need to be able to use ord()
to get the same value as javascript's charCodeAt()
function. The problem is that ord()
doesn't support UTF8.
How can I get Ą
to translate to 260
in PHP? I've tried some uniord functions out there, but they all report 256 instead of 260.