Quantcast
Channel: How to replace Microsoft-encoded quotes in PHP - Stack Overflow
Viewing all articles
Browse latest Browse all 7

How to replace Microsoft-encoded quotes in PHP

$
0
0

I need to replace Microsoft Word's version of single and double quotations marks (“”‘’) with regular quotes (' and ") due to an encoding issue in my application. I do not need them to be HTML entities and I cannot change my database schema.

I have two options: to use either a regular expression or an associated array.

Is there a better way to do this?


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images