On Tue, 28 Dec 2004 15:01:08 +0000, Eirikur Hrafnsson <[EMAIL PROTECTED]> wrote:
> Of course I spoke to soon...
> 
> The problem with this setup is that you get mixed encodings. I want to
> use ISO-8859-1 for the default system encoding
> (-Dfile.encoding="ISO-8859-1") but I have to have the URLEncoding=UTF-8
> setting in tomcat for Slide to work. Now when you ask the Request what
> encoding it is using it will then tell it's using ISO-8859-1 when it

Hmmm, not quite sure if I understand this. What method are you using
to query the request which URI encoding it is using? In my opinion and
understanding of the HTTP protocol there is no way to tell except by
convention. Are you sure you are not confusing this with the encoding
of the text body?

> fact it is always decoding with UTF-8. Forms will then work ok (at
> least with POST) but links with special characters in the attributes
> (GET) will not since the attribute will be encoded in ISO but decoded
> in UTF-8.
> 
> So...with all my babble aside the ONLY solution is to set everything to
> UTF-8, file.encoding, the page encoding (in html) and the tomcat
> variable URIEncoding in server.xml.

I do not understand this probably because I am ignorant. Could you
explain, please?

> Fortunately, at least with Oracle and the thin driver, that works with
> an ISO-8859-1 database since that encoding is a "subset" of UTF-8 and
> has a 1-1 mapping in UTF-8.
> However this makes Slide unusable with other "stranger" encodings such
> as Russian UNLESS you have a unicode database.

Yes, if you want to store unicode into you database the database will
have to support it, right?

> I looked at the patch that Thomas put in Bugzilla and it looks like it
> could work but I think the FAQ or the Wiki should contain clear
> instructions on how to use Slide in a non UTF-8 environment.

Still unclear to me what is a non UTF-8 environment.
 
> Thanks for all the help guys, hope this will be resolved in the next
> minor version.

Could you clarify what "this" means in this context.

Cheers,

Oliver

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

Reply via email to