Quantcast
Viewing all articles
Browse latest Browse all 1033

UTF-8 safe equivalent of javascript's charCodeAt() in PHP

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.


Viewing all articles
Browse latest Browse all 1033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>