Need Help with Extended ASCII Characters and Javascript/AJAX

Being from the United States, I don't run into the need to deal with Extended ASCII characters very often.  In reality, I never deal with them.  So I am pretty clueless as to how to solve the current issue I am having on Idea Jam.

The Idea Jam registration form is submitted via AJAX and works extremely well.  However, we have run into a problem where any extended ASCII characters aren't handled correctly on by the LotusScript agent that performs the registration.  The problem is that those characters are actually sent as 2 characters instead of one.  For example, é is sent as ├® or encoded, using encodeURIComponent(), to %C3%A9.  The code I am currently using to decode the encoded characters doesn't handle the double values.

Does anyone have any code that I can look at/borrow that translates encoded extended ascii characters and can still handle encoded spaces and ampersands?  Any help would be greatly appreciated.

<< Previous Document / Next Document >>
  • 1) Special Characters - Vitor Pereira
    Created 11/10/2007 10:57:10 AM email | website

    Sean, I read somewhere (can't remember exactly where) about someone saying that if you do an @URLDecode() twice (??) on the values using the Evaluate function in LotusScript it would work.

  • 2) Special Characters - Carl Tyler
    Created 11/10/2007 3:25:48 PM email | website

    I seem to remember doing something like this:

    Getting the query string with:

    doc.QUERY_STRING(0)

    so not using decoded

    eval = Evaluate(|@URLDecode("Domino";"|+ Subject +|")|)

    I think that did the trick, there is a lotusscript urldecode function floating around, but I found that didn't work well for extended characters.

  • 3) Re: Special Characters - Sean Burgess
    Created 11/10/2007 4:10:38 PM email | website

    @1 & @2 - Doing a single @URLDecode within an Evaluate did the trick. Unfortunately, I was doing a POST instead of a GET, so I couldn't use the Query_String_Decoded CGI Variable. I think I am going to have to put something on Idea Jam to have a Request_Content_Decoded CGI Variable.

Post A Comment
Subject: (required)
Name: (required)
Email: (required)
Web Site:
Comment:(No HTML - Links will be converted if prefixed http://)

Remember Me?