----- Original Message ----- 
From: "Claes Mullern-Aspegren" <[EMAIL PROTECTED]>

> trying to upload a folder with swedish characters

The current encoding way (using URIUtil class) has a problem
to support non-ascii characters in a few of probabilites.... 
That uses the fixed safe characters that might give you another problem.

> (The "A" with a dot over or two dots over).
> Using MS webfolders one of the calls to URLUtil.URLDecode
> is encoded in ISO-8859-1 but the encoder parameter to the
> method is UTF-8.
> 
> So this type of url:
> /files/file%20%E5%20%E5moretext
> was decoded to
> /files/file
> 
> Since the String constructor got the wrong encoder
> the byterepresentation of %E5 was wrong
> and the string was truncated.

Yes, you can notice that...
The encoding exception should be exported...
This value should be set by application users occasionally.


> My solution was to set the encoder to ISO-8859-1
> if the string containd a "%". I'm thinking this
> is not the right way to do it. Does someone have a better idea
> how to solve the problem, or which problems I can expect with this
> solution.

I hope it may be by a logical encoding and decoding way with
some flexible setting and somewhat careful programmtic coding... 

If you have some time, could you please check it out. 
Do you thinks, it will be ok? (refer to the below Refs)

Sung-Gu

Refs:
http://www.mail-archive.com/[email protected]/msg02507.html
http://www.mail-archive.com/[email protected]/msg03473.html


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

Reply via email to