Gnome character encoding

Discussion in 'Desktop Operation' started by Leszek, Nov 13, 2007.

  1. Leszek

    Leszek Member

    Hi!
    I was just making a website in html and had trouble with character encoding in Gnome (Ubuntu).How can I change it ? I need iso-8859-2 and can't see my national characters now
    when I'm making a website.They're present in the system tho.
    Thanks.
     
    Last edited: Nov 13, 2007
  2. sjau

    sjau Local Meanie Moderator

    Charsets are a nasty....

    maybe edit your apache2.conf and enable taht:

    Code:
        #AddDefaultCharset ISO-8859-1
    
    (and set it to -2 of course)

    Afterwards an apache restart is required. If you use PHP, you can also set it there:

    /etc/php5/apache2/php.ini
    Code:
    default_charset = "iso-8859-1"
    
     
  3. Leszek

    Leszek Member

    Thanks but that's not what I meant.
    I'm writing a website.This time in plain html and after that when a page is viewed in a browser I don't see my national fonts.
    It's not the server's fault (this time ;)).
    It's just the charset encoding.It would be great if I could switch it from current to my iso-8859-2 and the other way around but other ways would be ok too.
     
  4. sjau

    sjau Local Meanie Moderator

    I don't get what you mean.
     
  5. Leszek

    Leszek Member

    why don't you set the character encoding as I have told you?
     
    Last edited by a moderator: Nov 15, 2007
  6. Leszek

    Leszek Member

    Problem solved!

    Offcourse programs like Quanta,Blue Fish,Amaya etc. have to be set to ISO-8859-2 instead of UTF-8.Next I've opened /var/lib/locales/supported.d/local and enter pl_PL.ISO-8859-2 ISO-8859-2.I've done the same thing with /var/lib/locales/supported.d/pl
    I've heard that sometimes it doesn't work so I've edited /etc/default/locale just to be sure and typed LANG="pl_PL.ISO-8859-2"
    LANGUAGE="pl_PL.ISO-8859-2"

    After logging off and back on I've got my native character set.
     
  7. sjau

    sjau Local Meanie Moderator

    Ups, seems like I edited your posting instead of posting a reply. Sorry for that, that was not my intention.
     

Share This Page