[Seaside] Scriptaculous in place editor and comanche adaptor

Sebastian Sastre sebastian at flowingconcept.com
Sun Jan 26 00:20:03 UTC 2014


here is something that doesn’t feel right but works

WAComancheRequestConverter>>postFieldsOf: aNativeRequest into: aRequestFields
	"puts all the POST parameters of the given request decoded into a WARequestFields"
	| isUrlEncoded |
	isUrlEncoded := self isUrlEncoded: aNativeRequest.
	^ self
		decodeFields: aNativeRequest postFields
		using: [ :each |
			isUrlEncoded 
				ifTrue: [ each ] <**** not decoding
				ifFalse: [ self codec decode: each ] ]
		into: aRequestFields





On Jan 25, 2014, at 3:23 PM, Sebastian Sastre <SEBASTIAN at FLOWINGCONCEPT.COM> wrote:

> Hi there,
> 
> I’m seeing this weird error when posting with a scriptaculous in place editor on the latest seaside with comanche.
> 
> MessageNotUnderstood: GRPharoUtf8Codec>>invalidUtf8
> 
> What the debugger shows?
> 
> In #decode: the string seems to be already decoded from utf hence the exception
> 
> Any ideas on how to prevent decoding twice?
> 
> sebastian
> 
> o/
> 
> PD: it will not fail when you post text that doesn’t have diacritics so make sure you use something like 'organição'
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140125/2728428b/attachment.htm


More information about the seaside mailing list