foreign characters are corrupted.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

foreign characters are corrupted.

orbeanUser111
I am using orbeon-xforms-filter 3.7.1.201003242100 and when I pass xml from an xform to a rest service, the foreign characters are corrupted. for example Héctor becomes Héctor . how do i correct this? thanks.
Reply | Threaded
Open this post in threaded view
|

Re: foreign characters are corrupted.

Alessandro  Vernet
Administrator
Where is that XML that contains that string ("Héctor")? Do you get it
from a service call (xforms:submission)? My suspicion is that you
might not have a character encoding specified in the XML or that the
declared character encoding does not match the actual encoding. Of
course, there is no way for me to say for sure without being able to
reproduce the issue.

Alex

On Wed, Apr 28, 2010 at 12:52 PM, orbeanUser111
<[hidden email]> wrote:

>
> I am using orbeon-xforms-filter 3.7.1.201003242100 and when I pass xml from
> an xform to a rest service, the foreign characters are corrupted. for
> example Héctor becomes Héctor . how do i correct this? thanks.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/foreign-characters-are-corrupted-tp2073874p2073874.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: foreign characters are corrupted.

orbeanUser111
In reply to this post by orbeanUser111
i have the attribute - encoding="UTF-8" - in my <xforms:submission/> tag and it matches the xml declaration in the xsd file. are there other places where I need to set the encoding? thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Re: foreign characters are corrupted.

Alessandro  Vernet
Administrator
I wouldn't worry about the encoding attribute on the
<xforms:submission> as UTF-8 is the default. But make sure that in the
response of the REST service you have at the top of the file XML
declaration as follows:

<?xml version="1.0" encoding="UTF-8" ?>

If you do have one, and still have this problem, we would need a
reproducible test case to figure this one out.

Alex

On Mon, May 3, 2010 at 8:05 AM, orbeanUser111
<[hidden email]> wrote:

>
> i have the attribute - encoding="UTF-8" - in my <xforms:submission/> tag and
> it matches the xml declaration in the xsd file. are there other places where
> I need to set the encoding? thanks.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/foreign-characters-are-corrupted-tp2073874p2124091.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: foreign characters are corrupted.

Alessandro  Vernet
Administrator
I am not sure if this is relevant to you, but it may if you make SOAP
calls: we just put in a fix contributed by Olivier Thery that solves a
problem related to the encoding not being set correctly when making a
call to a SOAP service. That would only impact the data sent to the
SOAP service, but if that service receives the data with the wrong
encoding and returns that same data, it could also impact the data
returned by the service.

Alex

On Fri, May 7, 2010 at 11:55 AM, Alessandro Vernet <[hidden email]> wrote:

> I wouldn't worry about the encoding attribute on the
> <xforms:submission> as UTF-8 is the default. But make sure that in the
> response of the REST service you have at the top of the file XML
> declaration as follows:
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> If you do have one, and still have this problem, we would need a
> reproducible test case to figure this one out.
>
> Alex
>
> On Mon, May 3, 2010 at 8:05 AM, orbeanUser111
> <[hidden email]> wrote:
>>
>> i have the attribute - encoding="UTF-8" - in my <xforms:submission/> tag and
>> it matches the xml declaration in the xsd file. are there other places where
>> I need to set the encoding? thanks.
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/foreign-characters-are-corrupted-tp2073874p2124091.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet