/    Sign up×
Community /Pin to ProfileBookmark

Simple PHP, Apache Question

I am not sure if this question really belongs in the PHP forum, however, the site is using PHP. The problem may be more of an apache issue. I have a website that was built on my testing server which is Windows based but still running Apache, PHP and MySQL. When I moved the site to the live server (Fedora) all of the apostrophes and quotation marks turn into question marks. Does anyone know if there is a solution for this that doesn’t involve manually changing all of the marks? The marks show up correctly in the database but when displayed on the site they’re changed to the question marks. Any ideas would be much appreciated.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ZiplineauthorJun 15.2005 — In case anyone happens across this i found the answer to my own question. On my Fedora server the default value was UTF-8 for Defult charset. I changed it to iso-8859-1 and this solved my problem. Now most of the content form the word documents will properly display on my websites!

Since 1.3.12, The apache httpd.conf file has had the following lines in it:

(line 821 of my file, though these things change)
---------


# Default charset to iso-8859-1 (http://www.apache.org/info/css-security/).



AddDefaultCharset on
---------



You may also be able to turn of AddDefaultCharset but I haven't tried that so I won't give any advice.
×

Success!

Help @Zipline spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...