On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
> robert burrell donkin schrieb:
> > On 5/7/07, robert burrell donkin <[EMAIL PROTECTED]> wrote:
> >> On 5/7/07, ketanbparekh <[EMAIL PROTECTED]> wrote:
> >> >
> >> > I am running on Windows XP Professional.
> >>
> >> windows has a difficult default platform encoding so this may well be
> >> the problem
> >
> > i've taken a look at the code in SieveToMultiMailbox and SieveFactory.
> > i think that we have encoding issues. the current code will use  the
> > default platform encoding. when using windoz, this will result in
> > UFT-8 and UFT-16 encoded files being decoded incorrectly when (some)
> > non-ASCII characters are present.

Yes, I rather suspected this :(

> > to fix these issues, an encoding charset needs to be specified
> >
> > i can think of a couple of options (hopefully people will jump in with
> > any i've missed):
> >
> > 1 JAMES should support a single, hard coded charset (probably UFT-8)
> >
> > 2 we allow charset to be injected through configuration; defaulting to:
> >  2a UFT-8
> >  2b platform
> >
> > opinions?
> >
> > - robert
>
> Hi Robert,
>
> I think UTF-8 as default i not a good choice because some OS not support
> UTF-8 by default. Maybe
> ISO-8859-1 is a better choice.. A configuration option whould be cool
> too for sure ;-)
>
> bye
> Norman


As the spec. prescribes UTF-8, I rather think that this should be the default.

+1

(i should have checked the specification before posting)

As we are running in a VM, that the undetlying OS does or doesn't support UTF-8 
isn't an
issue. The VM will. We just need to make sure this is what we specify when 
dealing with
character set sensitive code.

unless anyone objects or beats me to it, i'll patch SieveFactory so
that UFT-8 is forced by default and add a FAQ about this

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to