Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    specify a different char set

    Hi,

    I have a php script that shows the result of query to LDAP server. This result doesn't view correctly in "ISO-8859-1", but yes in "UTF-8". Then I change this line:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    for this line:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    But it doesn't work.

    Then I've thought to change the charset with Javascript doing "document.charSet='utf-8'" but it doesn't work, too.

    Do you know another way to do this?

    Thanks a lot fos advanced.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The <meta http-equiv...> format means you are trying to override/supplement/replace a standard http header field with another one embedded within the html. If you can write the proper http header field in the first place there's no need for the "equiv". I suggest you ask in the PHP forum, they should be able to get you on the right path,
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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