I am creating a file that is to be saved on a local user's computer (not rendered in a web browser).
I am currently using html_entity_decode
, but this isn't converting characters like –
(which is the n-dash) and was wondering what other function I should be using.
For example, when the file is imported into the software, instead of the ndash or just a - it shows up as –
. I know I could use str_replace
, but if it's happening with this character, it could happen with many others since the data is dynamic.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…