#1  
Old 13th November 2007, 20:30
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 41 Times in 35 Posts
Send a message via Skype™ to Leszek
Default Gnome character encoding

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 by Leszek; 13th November 2007 at 20:33.
Reply With Quote
Sponsored Links
  #2  
Old 14th November 2007, 08:43
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,127
Thanks: 4
Thanked 43 Times in 40 Posts
Default

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"
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #3  
Old 14th November 2007, 12:07
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 41 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

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.
Reply With Quote
  #4  
Old 14th November 2007, 13:22
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,127
Thanks: 4
Thanked 43 Times in 40 Posts
Default

I don't get what you mean.
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #5  
Old 15th November 2007, 01:24
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 41 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

why don't you set the character encoding as I have told you?

Last edited by sjau; 15th November 2007 at 07:25.
Reply With Quote
  #6  
Old 24th November 2007, 14:49
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 41 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

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.
Reply With Quote
  #7  
Old 24th November 2007, 17:44
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,127
Thanks: 4
Thanked 43 Times in 40 Posts
 
Default

Quote:
Originally Posted by Leszek
why don't you set the character encoding as I have told you?
Last edited by sjau : 15th November 2007 at 07:25.
Ups, seems like I edited your posting instead of posting a reply. Sorry for that, that was not my intention.
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Starting FreeNX. Followed Guide. Centos. Dont think GNOME is running. crewxp Server Operation 5 21st February 2008 03:07
SSL of Thawte will be safed as a own certificate AndrS Installation/Configuration 11 17th September 2007 09:56
Character encoding within ISPConfig melwood Installation/Configuration 10 19th June 2007 21:45
MySQL character encoding Leszek Technical 1 2nd March 2007 13:22
How to force utf-8 character encoding in phpymyadmin? danf.1979 Server Operation 0 29th March 2006 12:24


All times are GMT +2. The time now is 19:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.