Apostrophe turning to question mark when using php handler in .htaccess

Posted by Tony Deefer on Stack Overflow See other posts from Stack Overflow or by Tony Deefer
Published on 2012-06-01T16:30:38Z Indexed on 2012/06/01 16:40 UTC
Read the original article Hit count: 401

Filed under:
|

I have a .htm page on a site, that for reasons I won't go into cannot be renamed .php

I have added some php code to the top of the page, (sets a cookie and redirects to another page) and added the following to .htaccess to parse the .htm file as php

  AddHandler application/x-httpd-php5 .html .htm

As soon as this is added to .htaccess all apostrophe's change into questions marks. Using charset UTF-8

Can anyone offer a solution that does not involve renaming the file .php?

Many thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about apache