Hi ops-users, I encountered problems with russian characters in
orbeon. If I submit a xform containing russian characters over a post-request
orbeon occasionally replaces some of these characters by the utf-8-character \Ufffd
which indictes that something has gone wrong. Until now I don’t understand when it happens
exactly and what characters are affected. It just happens some times. But every
time it happens, only russian characters (but not always the same) are involved. Has anyone seen this strange behaviour before? Below you see the header of my stylesheet. Every
post-submission causes the same problem. Thanks, emil --- stylesheet: <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:f="http://orbeon.org/oxf/xml/formatting"> <xsl:output
method="xhtml" encoding="utf-8" indent="no"/> <xsl:template
match="*">
<xsl:variable name="fragment" select="fragment"/>
<html>
<head>
<title>Enter new Person </title>
<xforms:model id="main-model">
<xforms:instance id="main-instance" xmlns="">
<xi:include href="input:data"/>
</xforms:instance>
<xforms:instance id="test">
<xi:include href="input:instance"/>
</xforms:instance>
<xforms:instance id="include-term-template-instance">
<term xmlns="" type="include">exi </term>
</xforms:instance>
<xforms:instance id="relation-template-instance">
<relation>
<firstname/>
<lastname/>
</relation>
</xforms:instance>
<xforms:instance id="exclude-term-template-instance">
<term xmlns="" type="exclude">exi </term>
</xforms:instance>
<xforms:instance id="uri-template-instance">
<uri xmlns="" type="manual"/>
</xforms:instance>
<xforms:instance id="control-instance">
<control xmlns="">
<backaddress/>
<message/>
<save-trigger/>
<data-status/>
<additional-names-insert-trigger/>
<additional-names-delete-trigger/>
<relations-insert-trigger/>
<relations-delete-trigger/>
<include-terms-insert-trigger/>
<include-terms-delete-trigger/>
<exclude-terms-insert-trigger/>
<exclude-terms-delete-trigger/>
<relations-insert-trigger/>
<relations-names-delete-trigger/>
<uri-insert-trigger/>
<uri-delete-trigger/>
<vehicle-delete-trigger/>
<new-trigger/>
</control>
</xforms:instance>
<xforms:bind nodeset="instance('control-instance')">
<xforms:bind nodeset="exclude-terms-delete-trigger"
readonly="count(instance('main-instance')/terms/term[@type='exclude'])
=1"/>
<xforms:bind nodeset="include-terms-delete-trigger"
readonly="count(instance('main-instance')/terms/term[@type='include'])
=1"/>
<xforms:bind nodeset="additional-names-delete-trigger"
readonly="count(instance('main-instance')/additional-names/name)
=1"/>
<xforms:bind nodeset="uri-delete-trigger"
readonly="count(instance('main-instance')/metadata/uris/uri) =1"/>
<xforms:bind nodeset="backaddress"
calculate="concat('/aml/factsheet?id=',
instance('main-instance')/personID)"/>
</xforms:bind>
<xforms:submission id="process-search-submission"
encoding="UTF-8"
ref="instance('main-instance')" method="post"
replace="all" action="/aml/process-search">
</xforms:submission>
<xforms:submission id="save-submission" encoding="UTF-8"
ref="instance('main-instance')"
method="post" replace="all" action="/aml/add">
<xforms:toggle case="save-wait" ev:event="xforms-submit"/>
<xforms:toggle case="done" ev:event="xforms-submit-done"/>
</xforms:submission>
<xforms:submission id="transliterate-submission"
encoding="UTF-8"
ref="instance('main-instance')" method="post"
replace="all" action="/aml/transliterate"
separator="&">
<xforms:toggle case="transliterator-wait"
ev:event="xforms-submit"/>
<xforms:toggle case="done" ev:event="xforms-submit-done"/>
</xforms:submission>
</xforms:model>
</head> ----END -- mail:
[hidden email]
Ringstr. 12 tel: +41 44 824 32
54
CH-8600 Dübendorf Web:
http://www.netbreeze.ch
Switzerland -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Emil,
What version of OPS are you using? I know that quite a while ago, a spurious bug related to UTF-8 encoding was fixed. If you are not using a recent build, can you try one? -Erik emil müller wrote: > Hi ops-users, > > > > I encountered problems with russian characters in orbeon. If I submit a > xform containing russian characters over a post-request orbeon > occasionally replaces some of these characters by the utf-8-character > \Ufffd which indictes that something has gone wrong. > > Until now I don’t understand when it happens exactly and what characters > are affected. It just happens some times. But every time it happens, > only russian characters (but not always the same) are involved. > > > > Has anyone seen this strange behaviour before? > > > > Below you see the header of my stylesheet. Every post-submission causes > the same problem. > > > > Thanks, > > emil > > > > > > > > --- stylesheet: > > > > > > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns:fo="http://www.w3.org/1999/XSL/Format" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > xmlns:fn="http://www.w3.org/2005/xpath-functions" > > xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" > xmlns="http://www.w3.org/1999/xhtml" > > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xi="http://www.w3.org/2001/XInclude" > > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting"> > > <xsl:output method="xhtml" encoding="utf-8" indent="no"/> > > <xsl:template match="*"> > > <xsl:variable name="fragment" select="fragment"/> > > <html> > > <head> > > <title>Enter new Person </title> > > <xforms:model id="main-model"> > > <xforms:instance id="main-instance" xmlns=""> > > <xi:include href="input:data"/> > > </xforms:instance> > > <xforms:instance id="test"> > > <xi:include href="input:instance"/> > > </xforms:instance> > > <xforms:instance > id="include-term-template-instance"> > > <term xmlns="" type="include">exi </term> > > </xforms:instance> > > <xforms:instance > id="relation-template-instance"> > > <relation> > > <firstname/> > > <lastname/> > > </relation> > > </xforms:instance> > > <xforms:instance > id="exclude-term-template-instance"> > > <term xmlns="" type="exclude">exi </term> > > </xforms:instance> > > <xforms:instance id="uri-template-instance"> > > <uri xmlns="" type="manual"/> > > </xforms:instance> > > <xforms:instance id="control-instance"> > > <control xmlns=""> > > <backaddress/> > > <message/> > > <save-trigger/> > > <data-status/> > > <additional-names-insert-trigger/> > > <additional-names-delete-trigger/> > > <relations-insert-trigger/> > > <relations-delete-trigger/> > > <include-terms-insert-trigger/> > > <include-terms-delete-trigger/> > > <exclude-terms-insert-trigger/> > > <exclude-terms-delete-trigger/> > > <relations-insert-trigger/> > > <relations-names-delete-trigger/> > > <uri-insert-trigger/> > > <uri-delete-trigger/> > > <vehicle-delete-trigger/> > > <new-trigger/> > > </control> > > </xforms:instance> > > > > <xforms:bind > nodeset="instance('control-instance')"> > > <xforms:bind > nodeset="exclude-terms-delete-trigger" > > > readonly="count(instance('main-instance')/terms/term[@type='exclude']) =1"/> > > <xforms:bind > nodeset="include-terms-delete-trigger" > > > readonly="count(instance('main-instance')/terms/term[@type='include']) =1"/> > > <xforms:bind > nodeset="additional-names-delete-trigger" > > > readonly="count(instance('main-instance')/additional-names/name) =1"/> > > <xforms:bind nodeset="uri-delete-trigger" > > > readonly="count(instance('main-instance')/metadata/uris/uri) =1"/> > > <xforms:bind nodeset="backaddress" > > > calculate="concat('/aml/factsheet?id=', > instance('main-instance')/personID)"/> > > </xforms:bind> > > <xforms:submission > id="process-search-submission" encoding="UTF-8" > > ref="instance('main-instance')" > method="post" replace="all" action="/aml/process-search"> > </xforms:submission> > > <xforms:submission id="save-submission" > encoding="UTF-8" ref="instance('main-instance')" > > method="post" replace="all" > action="/aml/add"> > > <xforms:toggle case="save-wait" > ev:event="xforms-submit"/> > > <xforms:toggle case="done" > ev:event="xforms-submit-done"/> > > </xforms:submission> > > <xforms:submission > id="transliterate-submission" encoding="UTF-8" > > ref="instance('main-instance')" > method="post" replace="all" action="/aml/transliterate" > > separator="&"> > > <xforms:toggle > case="transliterator-wait" ev:event="xforms-submit"/> > > <xforms:toggle case="done" > ev:event="xforms-submit-done"/> > > </xforms:submission> > > </xforms:model> > > </head> > > > > > > ----END > > > > > > > > -- > > emil müller NETBREEZE GMBH > > mail: [hidden email] Ringstr. 12 > > tel: +41 44 824 32 54 CH-8600 Dübendorf > > Web: http://www.netbreeze.ch Switzerland Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |