Can I use iconv to convert multi-byte smart quotes to extended ASCII smart quotes?

后端 未结 1 374
独厮守ぢ
独厮守ぢ 2020-12-18 03:09

I have some UTF-8 content that includes multi-byte smart quote characters. I\'ve found that this code will easily convert those characters to ASCII straight quotes (ASCII co

相关标签:
1条回答
  • 2020-12-18 03:52

    You're looking for CP-1252 which contains "curly quotes" at 0x91-0x94 (145-148).

    $content = iconv("UTF-8", "cp1252//TRANSLIT", $content);
    
    0 讨论(0)
提交回复
热议问题