Is there an equivalence table to convert ASCII smi

2020-03-19 02:29发布

问题:

I would like to find a table to convert the old school western ascii emoticons :-) into their modern unicode equivalent ☺.

Do you know if there is one?

回答1:

Not everyone agrees on what is what, but here is one such possible table mapping input ASCII-art emoticons to Unicode emoji. Both data elements are single quoted, so backslashes and single quotes are escaped.

'o/'         => '