Results 1 to 4 of 4

Thread: [How To] Add UTF-8 language support in your scripts

  1. #1
    Matt's Avatar
    Matt is online now GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,208

    Default [How To] Add UTF-8 language support in your scripts

    If you are developing a language pack for one of your scripts that does not contain support for special characters and you need UTF-8 support in order for the characters to appear properly, you can add this to your .htaccess file:

    Code:
    AddDefaultCharset utf-8
    Your special characters should appear as desired.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  2. #2
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    Available in Apache 2.0.33 and later

  3. #3
    Matt's Avatar
    Matt is online now GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,208

    Default

    Thanks for the clarification. Do you know the solution for Apache 1.x?
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  4. #4
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    This is still on my list to test, but haven't got there yet.

    I think its either

    AddCharset UTF-8 .html

    or something like this:

    HTML Code:
    <FilesMatch "\.(htm|html|css|js)$">
    ForceType 'text/html; charset=UTF-8' 
    </FilesMatch>

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14