SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Controling the Encoding (fonts)

    Hello all

    I have a Greek forum (VB) and for now my members use English characters to write Greek words (I know this sound crazy, but it is very common in the Greek internet world).

    What I want to do is to let people use real Greek from now on.
    But in order to so this I need to ask whether I could find a way to control the encoding of the forum pages. Otherwise, the Greek characters show up realy ugly (like random characters...).

    I mean, I want the encoding to be set automatically to Greek (Windows) when someone visits the page.

    Is there any way to do this? Maybe via a javascript? Or even simple HTML ?

    thanx in advance

    stark

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm, try this in the <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7" />
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx.
    I tried it but I'm not sure if and how it could work.

    What I mean is that I go to a random page.... let's say yahoo.com.

    Then I manually set the encoding to Western European (Windows).

    Then I go at my forums and the encoding does not change to Greek.

    I also tried to see what happens if I choose "Auto select" (IE 6) but still no result.

    stark

  4. #4
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok. I just figured out that I had done a mistake.
    I put the line at the forumhome header, when I should put it at the head insert.

    Anyway it seems that it works now. I will test it also on other browsers and see.

    I also found the exact char set for Greek windows :

    (Greek) Windows-1253

    But isn't it true that Mac users will have probs with that? So I should prefer Iso?

    thanx again
    Last edited by stark427; Apr 7, 2003 at 09:13.

  5. #5
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  6. #6
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by beetle
    Thank you.

    In the past I always prefered Greek (Windows) than Greek (Iso). The reasons was that the ISO set was showing wrongly some US characters.

    I reproduced the bug some minutes ago.

    Look at the screenshot. An apostrophe is not correctly shown.

    I guess I'm back to zero. Last chance for me is to try Greek (Windows) maybe...

    EDIT :

    You can also see the screenshot here :

    http://www.synthpopavenue.gr/forum/s...3657#post23657
    Attached Images Attached Images


Bookmarks

Posting Permissions

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