Value in the request.getParameter() is truncated with Application Server 3.7.4

(Last modified: 22Jul2003)

This document (10085305) is provided subject to the disclaimer at the end of this document.

fact

Novell exteNd Workbench 2.0

Novell exteNd Application Server 3.7.4

Tomcat

symptom

Value in the request.getParameter() is truncated with Application Server 3.7.4

Using a JSP page with the following value in a Text Area:
<textarea name="text" cols="60" rows="10"><%=((text==null)?"Everything from this point -> &#8212; will be truncated.":text)%></textarea>

When the submit button is pressed, all that will be displayed on the page (as a result of request.Parameter("text");) is: "Everything from this point -> "

Do not experience this problem with Tomcat

cause

The JSP page was set to use  the charset of ISO-8859-1.  It is necessary to use UTF-8 as the charset because "&#8212"  is not part of the ISO-8859-1 set. 

fix

To resolve the problem, change the charset to UTF-8 for the JSP page and re-deploy to the exteNd Application Server.  Retest, the request.getParameter() should work correctly.

note

Here is some information about UTF-8 and ISO encoding from http://webtips.dan.info/char.htmlhttp://webtips.dan.info/char.html

The newest HTML standard (4.0) adopts Unicode as the official document character set, meaning that numeric character references are always interpreted with regard to Unicode, as opposed to the character encoding, which is the character set used to transmit the characters over the network (and possibly also to store the Web pages on the server's file system, but not necessarily as the server might transform the characters as it transmits them.) This encoding has no standard defined and is supposed to be specified in the HTTP content-type header, but the numerical character references should be unaffected by the chosen encoding of a document.

The first 256 characters of Unicode (#0-#255) are equivalent to the ISO Latin 1 standard, which in turn has its first 128 characters equivalent to the older US-ASCII (with the minor exception that Unicode has chosen not to give any definition as to the functions of the control characters from #0-#31 and #128-#159, leaving them entirely system-specific) so
existing Web documents will work the same as always. But additional characters #256-#65535 are also available, including many other foreign languages, mathematical characters, and more, including curly quotes. (Look at the series of characters beginning with &#8216;. Here's what your browser displays: ''*?""*?) There are some proposals in progress to define still other character sets with numbers above #65535 (and thus outside the 16-bit character range) to encompass character repertoires not granted a place in the Unicode system (such as highly specialized symbol sets or characters from obscure or dead languages), but I don't think these have yet been standardized or supported by any browsers.

document

Document Title: Value in the request.getParameter() is truncated with Application Server 3.7.4
Document ID: 10085305
Solution ID: NOVL91056
Creation Date: 21Jul2003
Modified Date: 22Jul2003
Novell Product Class:exteNd

disclaimer

The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.