[Glass] REST service and accented strings

BrunoBB via Glass glass at lists.gemtalksystems.com
Thu Aug 6 14:47:47 PDT 2015


Hi All,

I have some problems to handle accented string with Seasde REST.
The service is defined as follow:
testPut
	"This service is called by Orbeon when a user click on -Save- inside the
Form Builder.
	A Form Definitions has been saved "
	| orbeonData |
	<put>
	<path: '/testPut'>

	orbeonData := Orbeon_Form_Data new.

	orbeonData xml: (self requestContext request rawBody "bodyDecodeUsing:
'ISO-8859-1'");
		document_id: '1';
		addToCache.

Using Postman from google is i do a "put" to the service with xml value: 
<label>ó</label>. (accented o)

If i check Orbeon_Form_Data object at "xml" instance variable it answer:
<label>ó</label>.

Does anyone has any idea what is happening ?

Now investigating this...

Regards,
Bruno



--
View this message in context: http://forum.world.st/REST-service-and-accented-strings-tp4841375.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list