This is probably because you kept your default Jetspeed encoding as UTF-8.
Since this is a variable length encoding, when encountering non-ASCII
characters
it uses 2 bytes instead of 1...

2 ways around it:
- either, make sure you never end a line with an accentuated character to
make
  you're not losing your lines because of parsing errors
- or, set the default encoding to iso-8859-1 (or iso-8859-15)

The best choice depends on whether you need to support non iso-8859-1
characters
in your content...

--
Rapha�l Luta - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

> -----Message d'origine-----
> De : Aur�lien Pernoud [mailto:[EMAIL PROTECTED]]
> Envoy� : jeudi 3 octobre 2002 09:53
> � : 'Jetspeed Users List'
> Objet : Strange Javascript Transfert using Jetspeed : encoding issue ?
> 
> 
> 
> Hi all, here's my problem :
> 
> I have javascript files I'm using within a webapp that I 
> wanted to use with
> Jetspeed. But there's seem to be transfert errors when I try 
> to get them
> from jetspeed servlet instead of my servlet... Both servlets 
> are running on
> the same tomcat (3.3.1 Final) so I really don't understand.
> 
> The trouble seems to come from accents present in the Javascript
> commentaries such as this one :
> 
>       // On parcours tous les �l�ments du tableau pour 
> v�rifier leur validit�
>       while (i < arrayOfDate.length)
>       {
> 
> After transfert I'm getting this when using jetspeed servlet 
> (using my other
> servlet it works fine) :
> 
>       // On parcours tous les ?ments du tableau pour v?fier 
> leur validit?                 while
> (i < arrayOfDate.length)
>       {
> 
> So the "while" instruction is put into comment and my 
> javascript goes wrong.
> It seems to come from the accents but there's no trouble with my other
> servlet and there are many accents in my JS files to convert 
> all of them.
> 
> If anyone has an idea... I'm getting crazy. I know it's not 
> exactly a bug in
> jetspeed but more a servlet parameter, but didn't find which one.
> 
> Thanx,
> Aur�lien Pernoud
> Sopra Group
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

Reply via email to