%2B instead of spaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

%2B instead of spaces

laura
Hi all,

Having rendered this

html textArea callback: [ :value | self actionWith: value ]; ...

When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.

Should i change them manually or there is another way to fix it?

I'm not sure this happened before i removed development tools sending

WAAdmin applicationDefaults
    removeParent: WADevelopmentConfiguration instance.


Love,
Laura

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

Bob Arning-2
Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

On 3/6/15 1:52 PM, Laura Risani wrote:
Hi all,

Having rendered this

html textArea callback: [ :value | self actionWith: value ]; ...

When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.

Should i change them manually or there is another way to fix it?

I'm not sure this happened before i removed development tools sending

WAAdmin applicationDefaults
    removeParent: WADevelopmentConfiguration instance.


Love,
Laura


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

Tobias Pape
Hi,

On 06.03.2015, at 22:06, Bob Arning <[hidden email]> wrote:

> Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

This could be a double encoding problem:
in Form-urlencoded requests, a space can be represented by a + [1]
but apparently, the + then got urlencoded itself.

note the + is a space only in the _query_ of the request.

Best
        -Tobias



[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

>
> On 3/6/15 1:52 PM, Laura Risani wrote:
>> Hi all,
>>
>> Having rendered this
>>
>> html textArea callback: [ :value | self actionWith: value ]; ...
>>
>> When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.
>>
>> Should i change them manually or there is another way to fix it?
>>
>> I'm not sure this happened before i removed development tools sending
>>
>> WAAdmin applicationDefaults
>>     removeParent: WADevelopmentConfiguration instance.
>>
>>
>> Love,
>> Laura
>>
>>
>> _______________________________________________
>> seaside mailing list
>>
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

laura
Hi,

Tried changing app charset but didn't change a thing.
Perhaps it has something to do with the adaptor i'm using, changes i made.
Yet retrieving the textArea value through a script gives the right text, so i'll do that it until the case i found another solution.

Best,
Laura

On Fri, Mar 6, 2015 at 6:14 PM, Tobias Pape <[hidden email]> wrote:
Hi,

On 06.03.2015, at 22:06, Bob Arning <[hidden email]> wrote:

> Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

This could be a double encoding problem:
in Form-urlencoded requests, a space can be represented by a + [1]
but apparently, the + then got urlencoded itself.

note the + is a space only in the _query_ of the request.

Best
        -Tobias



[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

>
> On 3/6/15 1:52 PM, Laura Risani wrote:
>> Hi all,
>>
>> Having rendered this
>>
>> html textArea callback: [ :value | self actionWith: value ]; ...
>>
>> When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.
>>
>> Should i change them manually or there is another way to fix it?
>>
>> I'm not sure this happened before i removed development tools sending
>>
>> WAAdmin applicationDefaults
>>     removeParent: WADevelopmentConfiguration instance.
>>
>>
>> Love,
>> Laura
>>
>>
>> _______________________________________________
>> seaside mailing list
>>
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

Johan Brichau-2
Can you check which adaptor and which versions of the concerned packages you are using?
If we can reconstruct the issue with a code sample, we can see what is happening.

Johan

On 07 Mar 2015, at 00:28, Laura Risani <[hidden email]> wrote:

Hi,

Tried changing app charset but didn't change a thing.
Perhaps it has something to do with the adaptor i'm using, changes i made.
Yet retrieving the textArea value through a script gives the right text, so i'll do that it until the case i found another solution.

Best,
Laura

On Fri, Mar 6, 2015 at 6:14 PM, Tobias Pape <[hidden email]> wrote:
Hi,

On 06.03.2015, at 22:06, Bob Arning <[hidden email]> wrote:

> Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

This could be a double encoding problem:
in Form-urlencoded requests, a space can be represented by a + [1]
but apparently, the + then got urlencoded itself.

note the + is a space only in the _query_ of the request.

Best
        -Tobias



[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

>
> On 3/6/15 1:52 PM, Laura Risani wrote:
>> Hi all,
>>
>> Having rendered this
>>
>> html textArea callback: [ :value | self actionWith: value ]; ...
>>
>> When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.
>>
>> Should i change them manually or there is another way to fix it?
>>
>> I'm not sure this happened before i removed development tools sending
>>
>> WAAdmin applicationDefaults
>>     removeParent: WADevelopmentConfiguration instance.
>>
>>
>> Love,
>> Laura
>>
>>
>> _______________________________________________
>> seaside mailing list
>>
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

laura
Thank you for your offering, but just found the solution. 
It was an enconding problem after all.


On Tue, Mar 10, 2015 at 7:03 PM, Johan Brichau <[hidden email]> wrote:
Can you check which adaptor and which versions of the concerned packages you are using?
If we can reconstruct the issue with a code sample, we can see what is happening.

Johan

On 07 Mar 2015, at 00:28, Laura Risani <[hidden email]> wrote:

Hi,

Tried changing app charset but didn't change a thing.
Perhaps it has something to do with the adaptor i'm using, changes i made.
Yet retrieving the textArea value through a script gives the right text, so i'll do that it until the case i found another solution.

Best,
Laura

On Fri, Mar 6, 2015 at 6:14 PM, Tobias Pape <[hidden email]> wrote:
Hi,

On 06.03.2015, at 22:06, Bob Arning <[hidden email]> wrote:

> Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

This could be a double encoding problem:
in Form-urlencoded requests, a space can be represented by a + [1]
but apparently, the + then got urlencoded itself.

note the + is a space only in the _query_ of the request.

Best
        -Tobias



[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

>
> On 3/6/15 1:52 PM, Laura Risani wrote:
>> Hi all,
>>
>> Having rendered this
>>
>> html textArea callback: [ :value | self actionWith: value ]; ...
>>
>> When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.
>>
>> Should i change them manually or there is another way to fix it?
>>
>> I'm not sure this happened before i removed development tools sending
>>
>> WAAdmin applicationDefaults
>>     removeParent: WADevelopmentConfiguration instance.
>>
>>
>> Love,
>> Laura
>>
>>
>> _______________________________________________
>> seaside mailing list
>>
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: %2B instead of spaces

Johan Brichau-2
I’m sure it is, but you should never get an issue with that in a Seaside callback. Seaside takes care of encodings so you should not.
So, if there is an issue somewhere, we would like to know so you do not have to work around it.

If it was something in your code, then I’m glad you fixed it.

cheers
Johan

On 11 Mar 2015, at 04:15, Laura Risani <[hidden email]> wrote:

Thank you for your offering, but just found the solution. 
It was an enconding problem after all.


On Tue, Mar 10, 2015 at 7:03 PM, Johan Brichau <[hidden email]> wrote:
Can you check which adaptor and which versions of the concerned packages you are using?
If we can reconstruct the issue with a code sample, we can see what is happening.

Johan

On 07 Mar 2015, at 00:28, Laura Risani <[hidden email]> wrote:

Hi,

Tried changing app charset but didn't change a thing.
Perhaps it has something to do with the adaptor i'm using, changes i made.
Yet retrieving the textArea value through a script gives the right text, so i'll do that it until the case i found another solution.

Best,
Laura

On Fri, Mar 6, 2015 at 6:14 PM, Tobias Pape <[hidden email]> wrote:
Hi,

On 06.03.2015, at 22:06, Bob Arning <[hidden email]> wrote:

> Well, %2B is the "+", so it's not even what you entered, encoded or not. I did notice you were having some issues related to encoding a few days ago. Could those have something to do with this problem?

This could be a double encoding problem:
in Form-urlencoded requests, a space can be represented by a + [1]
but apparently, the + then got urlencoded itself.

note the + is a space only in the _query_ of the request.

Best
        -Tobias



[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

>
> On 3/6/15 1:52 PM, Laura Risani wrote:
>> Hi all,
>>
>> Having rendered this
>>
>> html textArea callback: [ :value | self actionWith: value ]; ...
>>
>> When the callback is processed the value argument has all white spaces (inputed pressing the space key) replaced by '%2B'.
>>
>> Should i change them manually or there is another way to fix it?
>>
>> I'm not sure this happened before i removed development tools sending
>>
>> WAAdmin applicationDefaults
>>     removeParent: WADevelopmentConfiguration instance.
>>
>>
>> Love,
>> Laura
>>
>>
>> _______________________________________________
>> seaside mailing list
>>
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside