Results 1 to 3 of 3
  1. #1

    Apache2 + Php Problems (charset)


    If you have tried RedHat 8.0 then you know that Apache 2 is default. I have some problems with the combination and I want to see if anyone has solved them.

    Pages designed with other charsets are ok with Apache 1.3 and IIS but when I try them on Apache 2.0 (viewed with IE 6.0) they do not come up with correct charset and I need to determine encoding for each new page while it is determined on meta tags. (Right click on page -> Encoding -> Select Encoding)

    As I told I am sure it is fromApache as same pages come up correctly on IIS and Apache 1.3.

    Have anyone seen this problems? How can I fix these ?

    I have tried changing below option:

    # Specify a default charset for all pages sent out. This is
    # always a good idea and opens the door for future internationalisation
    # of your web site, should you ever want it. Specifying it as
    # a default does little harm; as the standard dictates that a page
    # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
    # are merely stating the obvious. There are also some security
    # reasons in browsers, related to javascript and URL parsing
    # which encourage you to always set a default char set.
    AddDefaultCharset ISO-8859-1

    I disabled this option but it did not work.

    Thank you,
    Last edited by wmac; 11-17-2002 at 06:41 AM.

  2. #2
    Join Date
    Jul 2002
    Make sure you write correct [X]HTML code that specifies the charset in either a meta tag or in the XML header. Try this:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    <html xmlns="" xml:lang="en">
    <head><title>Sample XHTML 1.1 document</title></head>
    <p>Some random text.</p>
    C#/C++/TCL/Python/PHP developer.
    mark at mark org il

  3. #3
    Thank you.

    You mean I can no more use:

    <meta http-equiv="Content-Language" content="en">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

    Or something like that?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts