[Glass] REST service and accented strings

BrunoBB via Glass glass at lists.gemtalksystems.com
Thu Aug 6 15:41:46 PDT 2015


Dale,

You are right is an encoding problem, this REST service is receiving a XML
"put" from a Java application.
Now i'm using:
gsString := self requestContext request rawBody. "to get the XML from java"

And at some point the Java app do a "get" to receive the same XML.
Now i do:
((GRCodec forEncoding: 'utf-8') decode: gsString) asString

This has solved the problem. It seems that the REST service enconde the
string at some point.

Thanks for your help.

Regards,
Bruno



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


More information about the Glass mailing list