Current time: 04-19-2024, 01:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
adding charset
Author Message
snetekombinerke Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #1
adding charset
How can i add charset to apache?
I need windows-1250 charset.
I'm from slovenia (SI)....

Our language has special characters and they are not displayed properly with default install of apache and ispcp omega.


Please help me
06-18-2008 04:44 AM
Find all posts by this user Quote this message in a reply
Solvik Offline
Junior Member
*

Posts: 25
Joined: Aug 2007
Reputation: 0
Post: #2
RE: adding charset
You need to edit the /etc/apache2/conf.d/charset file
In mine, it is:

Quote:AddDefaultCharset UTF-8

You just need to replace UTF-8 by windows-1250 i think Smile then restart apache
06-18-2008 05:04 AM
Find all posts by this user Quote this message in a reply
MrMarv Offline
Junior Member
*

Posts: 14
Joined: Jun 2008
Reputation: 0
Post: #3
RE: adding charset
Hi!

I recently found this option in Include/ispcp.conf (which is, depending on your system, somehow included to your main apache config)

Code:
#
# let the customer decide what charset he likes to use
#

AddDefaultCharset Off

This need be changed to UTF-8 or windows-1250 or any another type which support your local characters and your like.

Greetings so Slovenia!
Marv
06-18-2008 05:43 AM
Find all posts by this user Quote this message in a reply
snetekombinerke Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #4
RE: adding charset
I found thisc file
\etc\ispcp\apache\working\ispcp.conf

I have DEBIAN

what if I want youst support for windows-1250, and not set default charset

I found:
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

In \etc\apache2 apache2.conf

and:
AddCharset us-ascii .ascii .us-ascii
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
AddCharset ISO-8859-10 .iso8859-10 .latin6
AddCharset ISO-8859-13 .iso8859-13
AddCharset ISO-8859-14 .iso8859-14 .latin8
AddCharset ISO-8859-15 .iso8859-15 .latin9
AddCharset ISO-8859-16 .iso8859-16 .latin10
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5 .b5
AddCharset cn-Big5 .cn-big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8 .koi8
AddCharset KOI8-E .koi8-e
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-U .koi8-u
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-7 .utf7
AddCharset UTF-8 .utf8
AddCharset UTF-16 .utf16
AddCharset UTF-16BE .utf16be
AddCharset UTF-16LE .utf16le
AddCharset UTF-32 .utf32
AddCharset UTF-32BE .utf32be
AddCharset UTF-32LE .utf32le
AddCharset euc-cn .euc-cn
AddCharset euc-gb .euc-gb
AddCharset euc-jp .euc-jp
AddCharset euc-kr .euc-kr
#Not sure how euc-tw got in - IANA doesn't list it???
AddCharset EUC-TW .euc-tw
AddCharset gb2312 .gb2312 .gb
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
AddCharset shift_jis .shift_jis .sjis

Do I have to add charset in this file or ispcp overrides apache file?


TNX for fast reply
06-18-2008 08:24 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #5
RE: adding charset
Are the not correctly displayed characters in ispCP or in a website?
06-18-2008 09:53 AM
Find all posts by this user Quote this message in a reply
snetekombinerke Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #6
RE: adding charset
on web site
I need it for oscommerce
06-19-2008 03:53 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #7
RE: adding charset
And does this website have the correct content-type-meta-tag?
06-19-2008 04:59 AM
Find all posts by this user Quote this message in a reply
snetekombinerke Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #8
RE: adding charset
I have installed this site to 3 diferent servers at webhosting companys... and it works.... now i want it on my own server
06-19-2008 05:48 AM
Find all posts by this user Quote this message in a reply
peman Offline
Banned

Posts: 77
Joined: May 2008
Post: #9
RE: adding charset
In my ispCP when a mail goes out to a customer, it cant show the swedish letters åäö, instead it shows åäö. Its a Debian server and the charset is set to UTF-8 and its also the same in the system, for example if i send a mail from the terminal.

The webmail works fine with åäö.

Where can i change this?

/Martin
(This post was last modified: 07-30-2008 06:26 PM by peman.)
07-29-2008 10:36 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)