Re: TagUtils.encodeURL performance

2003-11-27 Thread yasuhiko yoshikawa
Hi David, Thank you for your reply. I think the sentence "The recommended encoding scheme to use is UTF-8" should really be understood as, the recommended encoding, when user did not specify an encoding, is UTF-8, because that sentence is followed by "However, for compatibility reasons, if an e

Re: TagUtils.encodeURL performance

2003-11-26 Thread David Graham
UTF-8 is used because it's recommended in the URLEncoder javadoc: http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html David --- yasuhiko yoshikawa <[EMAIL PROTECTED]> wrote: > > I do not think always passing UTF-8 as character encoding type is right > behavior. As far as I can tell,

Re: Japanese/Asain/Russian/Arabic Struts Committers Needed (Was: Re: TagUtils.encodeURL performance)

2003-11-26 Thread yasuhiko yoshikawa
Rob, Honestly, I am not familiar with Punycode. But to my understanding, it is very different from UTF-8. (in fact, if my memory serves right, it was proposed as another encoding scheme for Unicode, because existing coding scheme for Unicode, UTF-{8|16|32}, are not effective to express internatio

Japanese/Asain/Russian/Arabic Struts Committers Needed (Was: Re: TagUtils.encodeURL performance)

2003-11-26 Thread Robert Leland
There is also Internationalization of domain names, and ultimately URL's http://www.faqs.org/rfcs/rfc3492.html -Rob yasuhiko yoshikawa wrote: I do not think always passing UTF-8 as character encoding type is right behavior. As far as I can tell, there is no such requirement to mandate(or even r

Re: TagUtils.encodeURL performance

2003-11-25 Thread yasuhiko yoshikawa
I do not think always passing UTF-8 as character encoding type is right behavior. As far as I can tell, there is no such requirement to mandate(or even recommend) UTF-8 as character encoding type in the HTML4 specification (and relevant RFCs). A while ago, I submitted a patch that enables the e

Re: TagUtils.encodeURL performance

2003-11-25 Thread David Graham
--- Robert Leland <[EMAIL PROTECTED]> wrote: > Pierre Maury wrote: > The patch would need to be usable with different encoding types. Why? The Java 1.3 version doesn't accept an encoding type and we always pass UTF-8 to the 1.4 version. > This memory storage seems like a small price to pay for

Re: TagUtils.encodeURL performance

2003-11-25 Thread Robert Leland
Pierre Maury wrote: The patch would need to be usable with different encoding types. This memory storage seems like a small price to pay for the improvement, but I would like to hear from other commiters. -Rob Hi, I think there is a performance issue with org.apache.struts.taglib.TagUtils.encodeU

TagUtils.encodeURL performance

2003-11-25 Thread Pierre Maury
Hi, I think there is a performance issue with org.apache.struts.taglib.TagUtils.encodeURL(String). Attached to this mail, four java classes that demonstrate and solve the problem. You may run EncoderTest to compare the timings of the original struts code with a faster encoder. On my computer enc