Consultor Eletrônico



Kbase P33750: WebSpeed - all
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

SYMPTOM(s):

WebSpeed - all "space" characters are stored and displayed incorrectly.

all spaces used between words are displayed and stored like:
item%2520number%2520 or
Description%20short%20long

CAUSE:

One cause could be the use of JavaScript escape function:

HTML page:
...
JavaScript
(String = "Hello World";)
String=escape(string)
....
Gives 'Hello%20World'

FIX:

This is expected behaviour if the escape() function is used.

The escape() function gives the ASCII encoding of an argument in the ISO Latin-1 character.
escape(Hello World)
gives:
'Hello%20World'