我有以下字符串:
LONDON — Britain’s unemployment rate held steady in the three months through January, reinforcing the Bank of England’s case for keeping interest rates at a record low.
如果我使用类似的东西,htmlentities
我会得到以下字符串:
LONDON — Britain’s unemployment rate held steady in the three months through January, reinforcing the Bank of England’s case for keeping interest rates at a record low.
但是我想获取 WINDOWS-1252 实体,例如:
LONDON — Britain’s unemployment rate held steady in the three months through January, reinforcing the Bank of England’s case for keeping interest rates at a record low.
我尝试过使用不同的功能,例如mb_convert_encoding
, iconv
,get_html_translation_table
但我无法找到一种方法来做到这一点。
任何帮助,将不胜感激。