Urlencode or equiv

I believe I am working with Actionscript 2, in Flash
Professional 8
I need to get a string from the user interface and do some
sanity checks on it, and substitute out a few characters, exaclty
as in the common function urlencode() in other web languages.
I saw string.split(), but the substitutions are tedious.. Any
better way to do this common task ?
thanks

You're probably looking for the escape(string) function I
suspect.

Similar Messages

  • How to use EQUIV operator in a query?

    i want to list products whose names like 'Windows XP' or 'WindowsXP', following is my query:
    select * from product
    where contains(product_name,'Windows XP = WindowsXP',1) > 0
    but this query only return the products whose name contain 'Windows XP'. the result is something likes
    select * from product
    where contains(product_name,'Windows (XP = WindowsXP)',1) > 0
    so i modified it to :
    select * from product
    where contains(product_name,'(Windows XP) = (WindowsXP)',1) > 0
    it's error
    Error report:
    SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50900: text query parser error on line 1, column 26
    DRG-50921: EQUIV operand not a word or another EQUIV expression
    29902. 00000 - "error in executing ODCIIndexStart() routine"
    *Cause:    The execution of ODCIIndexStart routine caused an error.
    *Action:   Examine the error messages produced by the indextype code and
    take appropriate action.

    Equiv only works for individual terms. Since there is a space between Windows and XP, they are two terms. You can use synonyms for phrases containing multiple terms, as shown below.
    SCOTT@orcl_11g> CREATE TABLE product (product_name  VARCHAR2 (30))
      2  /
    Table created.
    SCOTT@orcl_11g> INSERT ALL
      2  INTO product VALUES ('Windows XP')
      3  INTO product VALUES ('WindowsXP')
      4  INTO product VALUES ('Unix')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@orcl_11g> BEGIN
      2    CTX_THES.CREATE_THESAURUS ('name_thes');
      3    CTX_THES.CREATE_RELATION ('name_thes', 'Windows XP', 'SYN', 'WindowsXP');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX product_name_idx ON product (product_name)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  /
    Index created.
    SCOTT@orcl_11g> SELECT * FROM product
      2  WHERE  CONTAINS (product_name, 'SYN (Windows XP, name_thes)') > 0
      3  /
    PRODUCT_NAME
    Windows XP
    WindowsXP
    SCOTT@orcl_11g> SELECT * FROM product
      2  WHERE  CONTAINS (product_name, 'SYN (WindowsXP, name_thes)') > 0
      3  /
    PRODUCT_NAME
    Windows XP
    WindowsXP
    SCOTT@orcl_11g>

  • URLENCODE how to use it?

              Hi there...
              I am in desperate need to use the URLEncode functionality in the jsp under weblogic
              before sending a digital buffer inthe query string on the URL.
              plztell me how to do it...
              Plz.tell me asap.
              Thanx in advance,
              Regards,
              Mandar.
              

    Here's a short example:
              import java.net.URLEncoder;
              String unencoded = "How are you?";
              // Encode the String
              String encoded = URLEncoder.encode(unencoded);
              // Append encoded to the query String...
              Hope that helps,
              Nils
              Mandar wrote:
              >
              > Hi there...
              > I am in desperate need to use the URLEncode functionality in the jsp under weblogic
              > before sending a digital buffer inthe query string on the URL.
              > plztell me how to do it...
              > Plz.tell me asap.
              > Thanx in advance,
              > Regards,
              > Mandar.
              ============================
              [email protected]
              

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • URLDecoder / URLEncoder don't like non-ASCII, even with UTF-8 explicit

    Here's my code:
    import java.net.*;
    import java.io.*;
    public class Decoder
        public static void main(String[] args)
         if (args.length != 1) {
             System.err.println("Usage: Decoder UTF-8-URL-encoded-string");
             System.exit(1);
         String sampleString = "auflerhalb";
         try {
             for (int k = 0; k < args[0].length(); k++) {
              System.out.println("Char is " + Character.codePointAt(args[0], k));
             System.out.println();
             String queryText = URLDecoder.decode(args[0], "UTF-8");
             for (int k = 0; k < queryText.length(); k++) {
              System.out.println("Char is " + Character.codePointAt(queryText, k));
             String newText = URLEncoder.encode(queryText, "UTF-8");
             System.out.println(newText);
             System.out.println();
             for (int k = 0; k < sampleString.length(); k++) {
                  System.out.println("Char is " + Character.codePointAt(sampleString, k));
             System.out.println(URLEncoder.encode(sampleString, "UTF-8"));
         catch ( UnsupportedEncodingException e ) {
             System.err.println("Couldn't decode querytext as UTF-8");
         System.exit(0);
    }The problem I'm encountering is that characters such as the German S-like character aren't being decoded correctly, or encoded correctly. When I run this file, on Linux, MacOS X or Solaris 10, I get this:
    % java -version
    java version "1.5.0_07"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_07-b03, mixed mode)
    % java -cp . Decoder "au%DFerhalb"
    Char is 97
    Char is 117
    Char is 37
    Char is 68
    Char is 70
    Char is 101
    Char is 114
    Char is 104
    Char is 97
    Char is 108
    Char is 98
    Char is 97
    Char is 117
    Char is 65533
    Char is 101
    Char is 114
    Char is 104
    Char is 97
    Char is 108
    Char is 98
    au%EF%BF%BDerhalb
    Char is 97
    Char is 117
    Char is 223
    Char is 101
    Char is 114
    Char is 104
    Char is 97
    Char is 108
    Char is 98
    au%C3%9Ferhalb
    The decimal code point of the German S is 223; the hex code point is DF. Yet the decoder completely mangles the string containing %DF, and the internal string, which clearly has the right decimal code point, is mangled by the encoder; C3 9F has absolutely nothing to do with 223.
    I can't figure out for the life of me what I'm doing wrong. I've taken a look at the source code for URLDecoder.java, and it really appears that it's broken; it decodes hex sequences into a byte array, but Java bytes are signed, between -128 and 128. Could this be what's going on? Hex code points up to 127 work fine; above it don't work at all. Try my function with %7E instead of %DF, and then with %81.
    Can this really be broken?
    Thanks in advance -
    Sam Bayer
    The MITRE Corporation
    [email protected]

    The decimal code point of the German S is 223; the hex code point is DF.
    Yet the decoder completely mangles the string containing %DF, and the
    internal string, which clearly has the right decimal code point, is mangled
    by the encoder; C3 9F has absolutely nothing to do with 223.I don't think you understand what's going on. I haven't checked the Unicode table but let's assume that hex-DF is the Unicode code point for that character. That means it's in the range which UTF-8 will encode in two bytes. I haven't run it through the algorithm but it's quite likely that the result would be C3 9F, since that's what happened when you did it. It would certainly be two bytes and not one, contrary to what you expect.

  • Wron number of arguments error on URLEncoder.encode(language,

    the following is the code which is an example in The complete Reference JSP
    I ran this in tomcat
    it shows an error which is showed down this code.The place where error occuring is underlined in the code
    <%@ page session="false"
    import="java.io.*,
    java.net.*,
    java.util.*" %>
    <html>
    <head>
    <title>Using Cookies to Store Preferences</title>
    <style><%= STYLESHEET %></style>
    </head>
    <body>
    <table border="0" cellspacing="3" width="500">
    <%-- Company logo --%>
    <tr><td>
    <img src="images/lyric_note.png">
    </td></tr>
    <%-- Language preference bar --%>
    <tr><td class="LB">
    <%= getLanguageBar(request) %>
    </td></tr>
    </table>
    <%-- Localized greeting --%>
    <h1><%= getGreeting(request) %></h1>
    <%-- Store language preference in a persistent cookie --%>
    <% storeLanguagePreferenceCookie(request, response); %>
    </body>
    </html>
    <%!
    // ===========================================
    // Helper methods included here for
    // clarity. A better choice would be
    // to put them in beans or a servlet.
    // ===========================================
    * The CSS stylesheet
    private static final String STYLESHEET =
    "h1 { font-size: 130%; }\n"
    + ".LB {\n"
    + " background-color: #005A9C;\n"
    + " color: #FFFFFF;\n"
    + " font-size: 90%;\n"
    + " font-weight: bold;\n"
    + " padding: 0.5em;\n"
    + " text-align: right;\n"
    + " word-spacing: 1em;\n"
    + "}\n"
    + ".LB a:link, .LB a:active, .LB a:visited {\n"
    + " text-decoration: none;\n"
    + " color: #FFFFFF;\n"
    + "}\n";
    * Creates the language preference bar
    private String getLanguageBar
    (HttpServletRequest request)
    throws IOException
    String thisURL = request.getRequestURL().toString();
    StringBuffer sb = new StringBuffer();
    appendLink(sb, thisURL, Locale.ENGLISH);
    appendLink(sb, thisURL, Locale.GERMAN);
    appendLink(sb, thisURL, Locale.FRENCH);
    appendLink(sb, thisURL, Locale.ITALIAN);
    String languageBar = sb.toString();
    return languageBar;
    * Helper method to create hyperlinks
    private void appendLink
    (StringBuffer sb, String thisURL, Locale locale)
    throws UnsupportedEncodingException
    if (sb.length() > 0)
    sb.append(" ");
    String language = locale.getLanguage();
    sb.append("<a href=\"");
    sb.append(thisURL);
    sb.append("?language=");
    sb.append(URLEncoder.encode(language, "UTF-8")); sb.append("\">");
    sb.append(locale.getDisplayName(locale));
    sb.append("</a>\n");
    * Gets the greeting message appropriate for
    * this locale
    private String getGreeting
    (HttpServletRequest request)
    Locale locale = getLocaleFromCookie(request);
    ResourceBundle RB = ResourceBundle.getBundle
    ("com.jspcr.sessions.welcome", locale);
    String greeting = RB.getString("greeting");
    return greeting;
    * Determines the locale to use, in the following
    * order of preference:
    * 1. Language parameter passed with request
    * 2. Language cookie previously stored
    * 3. Default locale for client
    * 4. Default locale for server
    private Locale getLocaleFromCookie
    (HttpServletRequest request)
    Locale locale = null;
    String language = request.getParameter("language");
    if (language != null)
    locale = new Locale(language);
    else {
    Cookie[] cookies = request.getCookies();
    if (cookies != null) {
    for (int i = 0; i < cookies.length; i++) {
    Cookie cookie = cookies;
    String name = cookie.getName();
    if (name.equals("language")) {
    language = cookie.getValue();
    locale = new Locale(language);
    break;
    if (locale == null)
    locale = request.getLocale();
    return locale;
    * Stores the language preference
    * in a persistent cookie
    private void storeLanguagePreferenceCookie
    (HttpServletRequest request, HttpServletResponse response)
    Locale locale = getLocaleFromCookie(request);
    String name = "language";
    String value = locale.getLanguage();
    Cookie cookie = new Cookie(name, value);
    final int ONE_YEAR = 60 * 60 * 24 * 365;
    cookie.setMaxAge(ONE_YEAR);
    response.addCookie(cookie);
    %>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 45 and 173 in the jsp file: /chap08/examples/cookies/CookieBasedWelcome.jsp
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\_\chap08\examples\cookies\CookieBasedWelcome$jsp.java:75: Wrong number of arguments in method.
    sb.append(URLEncoder.encode(language, "UTF-8"));
    ^
    An error occured between lines: 45 and 173 in the jsp file: /chap08/examples/cookies/CookieBasedWelcome.jsp
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\_\chap08\examples\cookies\CookieBasedWelcome$jsp.java:110: Wrong number of arguments in constructor.
    locale = new Locale(language);
    ^
    An error occured between lines: 45 and 173 in the jsp file: /chap08/examples/cookies/CookieBasedWelcome.jsp
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\_\chap08\examples\cookies\CookieBasedWelcome$jsp.java:119: Wrong number of arguments in constructor.
    locale = new Locale(language);
    ^
    3 errors
    But i have even checked the syntax of encode at which is exactly matching
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html
    Kindly let me know what is the reason.......

    Check the Java API for this:
    There is a specific note for the method, which reads as follows:
    Note: The World Wide Web Consortium Recommendation states that UTF-8 should be used. Not doing so may introduce incompatibilites.
    It's always better to look in API docs.
    Annie.

  • SOAP Adapter with application/x-www-form-urlencoded

    You can use the content type "application/x-www-form-urlencoded" in a SOAP adapter?
    Thank you.

    I did the configuration below:
    "Here you have to use below configuration parameters for Module
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application / x-www-form-urlencoded "
    However, got the following error:
    =======================================================================================================
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.ClassNotFoundException: com.sap.aii.messaging.adapter.Conversion -
    Loader Info -
    ClassLoader name: [sap.com/com.sap.aii.af.mod.trans.app] Living status: alive Direct parent loaders: [system:Frame] [service:servlet_jsp] [service:ejb] [library:engine.j2ee14.facade] [library:com.sap.base.technology.facade] [library:com.sap.aii.af.lib] [library:com.sap.aii.af.sdk.lib] [service:com.sap.aii.af.cpa.svc] [service:com.sap.aii.af.svc] [service:com.sap.aii.adapter.xi.svc] [library:com.sap.aii.adapter.lib] Resources: C:\usr\sap\PI1\DVEBMGS04\j2ee\cluster\apps\sap.com\com.sap.aii.af.mod.trans.app\EJBContainer\applicationjars\com.sap.aii.af.mod.trans.ejb.jar -
    </SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    =======================================================================================================
    Any suggestion?
    Thank you.
    Regards,
    Bruno

  • Urldecode or urlencode

    I don't know if I have typed them right!
    urldecode or urlencode, how and when should they be used in JSP?

    I don't know if I have typed them right!Maybe! Maybe not!
    urldecode or urlencode, how and when should they be
    used in JSP?What are these?!? Methods? Of which class? Where are the API docs located?

  • URLencoded UTF string returns in wrong encoding from JSP

    I have hit behavior that makes me rather unhappy and nothing in docs...
    1/ I fetch string in UTF-8, OK
    2/ I URLencode it, OK
    3/ I click on the link with data from steps 1/,2/, OK
    4/ I get the data and siplay it, encoding is wrong
    I'm running Tomcat4 and this ehaviour is a bit annoying.
    Please, if you know, what I can do with it, tell me, I read the
    some docs but found nothing.
    Thanks

    Encoding is wrong? Use the servlet's getEncoding() method to find out what encoding it used. There is no setEncoding() method until level 2.3 of the servlet specification, and your system is likely not using that. But there may be somewhere in the Tomcat configuration where you can specify the default encoding it should use.

  • URLEncode returns different strings in different systems

    Hi all,
    We have used opendocument to call WEBi sub reports from the main WEBi report. Have used URLEncode to encode the parameter values. Whatever worked fine in DEV/UAT fails to work in PROD using the same browser. While checking on the URL found that the parameter value which is supposed to be something like "abc u2013 def" gets encoded to abc%20%C3%83%C2%A2%C3%82%C2%80%C3%82%C2%93%20def in PROD while in DEV it is encoded as abc%20%E2%80%93%20def
    What could cause this difference? Is there any other parameter to pass on to URLEncode to remove this inconsistency?
    Thanks for your advice.
    Regards,
    Mathangi

    Just want to add to this that it is a Cluster set-up at the PROD.

  • Http-equiv="refresh"

    I just installed Sun Java System Web Server 6.1, SP1. The following HTML code works as expected on my Windows IIS web server, it refreshes the page every 10 seconds.
    <meta http-equiv="refresh" content="10" >
    On my new Sun web server it refreshes every 30 seconds despite having content="10".

  • JAXB masrhal - URLEncoded?

    I am using JAXB to convert Java Objects to XML, which I wish to post to a URL. However, I cannot see an easy way to URLEncode the stream, so that the resulting XML data gets converted to HTTP compliant characters, Ie < becomes %3C, etc.
    Has anyone done this in an elegant way? Before I marshal to a StringWriter, convert to a String and call URLEncoder.encode() on it?
    Thanks in Advance!
    Steve Rogers

    Here is How I accomplished this:
          Marshaller lMarshaller = mContext.createMarshaller();
          lMarshaller.setProperty("jaxb.formatted.output", new Boolean(true)); // format output with indentation
          ValidationEventCollector lEvents = new ValidationEventCollector();
          lMarshaller.setEventHandler(lEvents);
          // if the content tree does not pass validation, do not marshal, and return events
          List lErrors = validateTree(pContentTree);
          if (lErrors.size() > 0)
             return lErrors;
          StringWriter lSW = new StringWriter();
          lMarshaller.marshal(pContentTree, lSW);
          lSW.close();
          pStream.write(URLEncoder.encode(lSW.toString())); // where pStream is Writer created on HttpURLConnection.getOutputStream()

  • HTML5 meta http-equiv

    I just learned that my favorite meta tags with http-equiv are obsolete in HTML5 doc types. 
    What should I be using to replace this tag?
         <meta http-equiv="last-modified" content="05 March, 2013 19:00:00 gmt">
    Nancy O.

    A similar approach to the one in the recent cache prevention thread: in .htaccess
    <IfModule mod_headers.c>
         <FilesMatch "\.(html|htm)$">
                Header Set Last-Modified "Tue, 05 March, 2013 19:00:00 GMT"
         </FilesMatch>
    </IfModule>
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Urlencoder : java question...

    Hi,
    I have a question on url encoding...
    I have to open a file from the remote location and
    I have file with the name something like this...: "{0EC79CFA-9AD5-4120-A768-BD3FBFA9BF6A}_2003_0816Image0006.JPG"
    I want to open this file after encoding the file name using urlencoder.
    Please suggest me how to do this. Please give me a sample code to for this...

    You are being way too vague. I cannot tell if the file is to be opened in a browser or on a server. And you still have not explained what this has to do with JSF. It is is not a JSF-specific question, take it to the general Java forum. [But not before reading this over|http://www.catb.org/~esr/faqs/smart-questions.html] .

  • Content-Type=application/x-www-form-urlencoded with UTF-8  data which servlet fails to interpret correctly .

    My Environment is Weblogic 6.1 SP2 on WIN2K.
    I have an HTTP client sending an HTTP request with
    Content-Type=application/x-www-form-urlencoded
    the data in HTTP request is in UTF-8. Note that HTTP client does not specify charset=UTF-8
    as part of the Content-Type.
    I have a servlet "VosXmlEvents" processing this HTTP request.
    The HTTP request contains data like &#8220;Zoë&#8221; which the servlet below
    interprets as &#8220;Zoë&#8221; causing me to think that my deployment settings
    might be wrong.
    My Deployment settings:
    In weblogic.xml deployment descriptor I have specified following:
    <charset-params>
    <!-- I specified this so that I can tell to weblogic that HTTP request data is
    UTF-8 so weblogic can successfully convert it to ISO-8859-1 as per Java servlet
    spec.-->
    <input-charset>
    <resource-path>/vos/events/xml/*</resource-path>
    <!-- I tried both UTF8 and UTF-8 and got same results-->
    <java-charset-name>UTF8</java-charset-name>
    </input-charset>
    <!-- I specified the the settings below just to be on the safe side, as I have
    seen java documentation, newsgroups etc. using slightly different, names for the
    same char encoding/canonical names . Java uses MIME preferred names,I think I
    dont have to do this but I hope specifying these should not do any harm either,
    am I correct in assuming it? (see reference 1 and 2. below for details)-->
    <charset-mapping>
    <iana-charset-name>ISO_8859-1:1987</iana-charset-name>
    <java-charset-name>ISO-8859-1</java-charset-name>
    </charset-mapping>
    <charset-mapping>
    <iana-charset-name>ISO_8859-1:1987</iana-charset-name>
    <java-charset-name>ISO8859_1</java-charset-name>
    </charset-mapping>
    <charset-mapping>
    <iana-charset-name>UTF-8</iana-charset-name>
    <java-charset-name>UTF-8</java-charset-name>
    </charset-mapping>
    <charset-mapping>
    <iana-charset-name>UTF-8</iana-charset-name>
    <java-charset-name>UTF8</java-charset-name>
    </charset-mapping>
    </charset-params>
    My web.xml has:
    <servlet>
    <servlet-name>VosXmlEvents</servlet-name>
    <servlet-class>some class name</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>VosXmlEvents</servlet-name>
    <url-pattern>/vos/events/xml/*</url-pattern>
    </servlet-mapping>
    According to Servlet spec. 2.3 sec. SRV.4.9 Request data encoding, cut pasting
    from spec below:
    "Currently, many browsers do not send a char encoding qualifier with the Content-Type
    header, leaving open the determination of the character encoding for reading HTTP
    requests. The default encoding of a request the container uses to create the request
    reader and parse POST data must be &#8220;ISO-8859-1&#8221;, if none has been
    specified by the client request. However, in order to indicate to the developer
    in this case the failure of the client to send a character encoding, the container
    returns null from the getCharacterEncoding method.
    If the client hasn&#8217;t set character encoding and the request data is encoded
    with a different encoding than the default as described above, breakage can occur.
    To remedy this situation, a new method setCharacterEncoding(String enc) has been
    added to the ServletRequest interface. Developers can override the
    character encoding supplied by the container by calling this method. It must be
    called prior to parsing any post data or reading any input from the request. Calling
    this method once data has been read will not affect the encoding."
    Q1. Should not <input-charset> related settings in weblogic.xml for a servlet
    helps container actually do some thing like setCharacterEncoding(String enc) on
    HTTP Request before it call the servlet?
    Q2. If not then that would mean I have to programatically call setCharacterEncoding(String
    enc)to correctly interpret my HTTP Request?
    Q3. If the answer to Q1 is "yes" then I will assume that getInputStream() or getReader()
    methods on the HttpServletRequest will give the chacter in the client encoded
    format which in this case is UTF-8, i.e I will get "Zoë" as in this example. Am
    I correct here?
    Reference:
    1. http://edocs.bea.com/wls/docs70/webapp/components.html#139932
    2. http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html

    Stefan,
    Thanks for the information. I have the following question then.
    The Webserver I am interacting with does not recognize user and password provided in the channel. It accepts user and pwd in payload and in application/x-www-form-urlencoded  content type only.
    Sample Raw Post that server server requires looks like this
    User=yourname&Password=yourpassword&INPUT_XML=%3C%3Fxmlversion%3D%221.0%22standalone%3D%22no%22%3F%3E%3CDELIVERY%3E%3CMESSAGE%3E%0D%0A++++%3CDESTINATION_ADDR%3E%2B447900570205%3C%2FDESTINATION_ADDR%3E%%3C%2FMESSAGE%3E%0D%0A%0D%0A%3C%2FDELIVERY%3E%
    What i have done is that constructed the post manually in Java code in un encoded form and expected the HTTP Adapter to do the encoding. Having done this, the HTTP Server is able to scuccessfully parse the xml except for & and < , > chars which err out as invalid XML.
    Is there an elegant way of doing above scenario using XML post and standard HTTP Adapter.
    Best Regards,
    Sudharshan N A

Maybe you are looking for

  • UCCX 9.0 outbound progressive dialer doesn't

    Using UCCX 9.0.2-10000 in the lab.  Attempting to set up demo for customer for next week. I have the outbound dialer set up, but it's not attempting to make a call (never hits the gateway).  In pulling the MIVR logs, I'm seeing something strange (see

  • How to read a file using string tokenizer   ?

    He everybody I am bit new to java ! i have a text file call Student.txt which contain a StudentName + thier marks like this way Shane 60 Will 73 Lorenzo 12 What i need to do is i need to use stringtokenizer class to populate an array of Student name

  • HT1414 how to backup ipod in disk mode

    Hello, I am trying to backup my ipod classic, but it only gives me the restore option. I do not want to go ahead with the restore because it will wipe out all my data. Is there a way to manually backup?

  • Apps "could not be found"  HELP!

    Just bought a used ipad 2.  Restored it and synched with itunes.  Everything worked fine, some apps, music...except 61 apps could not be found.  When I click "more information" it takes me iOS: An app you installed unexpectedly quits, stops respondin

  • Where is Illustrator 10.0.2??? please help

    where is Illustrator 10.0.2??? please help