Charset overwrite

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

stan0902
Posts: 30
Joined: Thu Aug 03, 2006 8:21 am
Location: Slovakia

Charset overwrite

Postby stan0902 » Mon Feb 26, 2007 5:37 am

Hi all.
When I send mail in HTML format with Windows-1250 charset and where picture is at the background so after receiving this mail the text part is in UTF-8 (Content-Type: text/plain; charset="UTF-8") and the HTML part is still in Windows-1250 (Content-Type: text/html; charset="windows-1250"). In this case the charset of whole mail is set to UTF-8 and so the diacritic marks are displayed wrong.
The same problem is when attachment is in mail. In this case Scalix overwrite charset to US-ASCII (Content-Type: text/plain; charset="US-ASCII").

Is it possible to set Scalix so that it will not change the charset?

Code: Select all

(Content-Type: multipart/related;
   type="multipart/alternative";
   boundary="----=_NextPart_000_000E_01C75976.A4767C70"

------=_NextPart_000_000E_01C75976.A4767C70
Content-Type: multipart/alternative;
   boundary="----=_NextPart_001_000F_01C75976.A4767C70"

------=_NextPart_001_000F_01C75976.A4767C70
Content-Type: text/plain;
   charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Pie Charts=C4=BE=C5=A1=C4=8D=C5=A5=C5=BE=C3=BD=C3=A1=C3=AD=C3=A9=C3=A4=C3=
=BA=C3=B4=C5=88
------=_NextPart_001_000F_01C75976.A4767C70
Content-Type: text/html;
   charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=3DridTitle>Pie Charts</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-1=
250"><BASE=20
href=3D"file://C:\Program Files\Common Files\Microsoft Shared\Stationery\=
">
<STYLE>BODY {
   MARGIN-TOP: 30px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #996600; FO=
NT-FAMILY: 'Times New Roman', Helvetica
}
</STYLE>

<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD>
<BODY id=3DridBody bgColor=3D#ffffff=20
background=3Dcid:000d01c7596e$42af0730$162ca8c0@pc22>
<DIV>=BE=9A=E8=9D=9E=FD=E1=ED=E9=E4=FA=F4=F2</DIV></BODY></HTML>

------=_NextPart_001_000F_01C75976.A4767C70--

------=_NextPart_000_000E_01C75976.A4767C70
Content-Type: image/jpeg;
   name="Pie Charts Bkgrd.JPG"
Content-Transfer-Encoding: base64
Content-ID: <000d01c7596e$42af0730$162ca8c0@pc22>
Content-Disposition: attachment;
   filename="Pie Charts Bkgrd.JPG"

/9j/4AAQSkZJRgABAgEASABIAAD/7QYsUGhvdG9zaG9wIDMuMAA4QklNA+kAAAAAAHgAAwA .....)

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Postby gren » Tue Feb 27, 2007 7:20 am

Hi,

You could experiment with the /var/opt/scalix/??/sys/general.cfg settings of :
UXO_MIME_TEXTFILE_CHARSETS=
BRW_MIME_TEXTFILE_CHARSETS=

The first of these affects the behavior of the internet gateway and the second one affects the behaviour for POP3 and IMAP clients.
The default setting for both of these is : "US-ASCII,ISO-8859-1,UTF-8"
You could try : "windows-1250,US-ASCII,ISO-8859-1,UTF-8"
or ""
In theory, the last of these should switch off the attempt to convert the text body to a different charset.

Regards,
Gren.

stan0902
Posts: 30
Joined: Thu Aug 03, 2006 8:21 am
Location: Slovakia

Postby stan0902 » Tue Feb 27, 2007 8:58 am

Hello,
thank's Gren !
With the third alternative it work's correct.

(I love these "hidden options" :D )


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 10 guests

cron