You need to send the _charset_=UTF-8 parameter for Sling to decode request 
parameters using UTF-8.

Cheers,
James

-----Original Message-----
From: Robert A. Decker [mailto:[email protected]]
Sent: 13 November 2012 16:38
To: [email protected]
Subject: accented text submitted via sling post servlet changed

Hi,

I'm submitting text to the sling post servlet via a post - just creating a 
node. I'm doing this from a Ruby on Rails controller. The text is 'abogado es 
tiburón'

When I look at the ActionDispatch Request coming out of RoR, it looks like:
"text=Abogado+es+tibur%C3%B3n.&lang=es&type=Type1&target=&sling%3AresourceType=bmn%2Fiarpa-metaphor%2Fcontent&jcr%3AprimaryType=nt%3Aunstructured&jcr%3AmixinTypes=mix%3Acreated"

So, tiburón is 'tibur%C3%B3n' which according to this page looks correct:
http://www.utf8-chartable.de/
U+00F3  ó       c3 b3   LATIN SMALL LETTER O WITH ACUTE

But when it's written to the repository it is written as:
tiburón.

I must be missing setting an encoding value somewhere... Any ideas?

Rob



Information in this e-mail and any attachments is confidential, and may not be 
copied or used by anyone other than the addressee, nor disclosed to any third 
party without our permission. There is no intention to create any legally 
binding contract or other binding commitment through the use of this electronic 
communication unless it is issued in accordance with the Experian Limited 
standard terms and conditions of purchase or other express written agreement 
between Experian Limited and the recipient. Although Experian has taken 
reasonable steps to ensure that this communication and any attachments are free 
from computer virus, you are advised to take your own steps to ensure that they 
are actually virus free. 

Companies Act information: Registered name: Experian Limited. Registered 
office: Landmark House, Experian Way, NG2 Business Park, Nottingham, NG80 1ZZ, 
United Kingdom. Place of registration: England and Wales. Registered number: 
653331

Reply via email to