Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个可以将 € 或 chr(0x20AC) 或 chr(8364) 转换为€没有静态地图的函数。
€
我尝试使用htmlentities(),但它似乎只适用于符号本身并且它转换为€.
htmlentities()
€
ircmaxwell 以一种全面的方式回答了这个问题......我试图做的事情真的是不可能的。我通过要求用户使用 html 实体来绕过这个过程。