Hi,
I use OPS develop a application. I find a problem: XPL don't support chinese language. For example:
The segment code of model.xpl:
<?xml version="1.0" encoding="UTF-8"?>
<p:config xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <p:param name="instance" type="input"/> <p:param name="data" type="output"/> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance"/> <p:input name="config"> <form xsl:version="2.0"> <items> <xsl:for-each select="/form/items/item"> <item> <name><xsl:value-of select="name"/></name> <age><xsl:value-of select="age"/></age> <addr>中国</addr> </item> </xsl:for-each> </items> </form> </p:input> <p:output name="data" ref="data"/> </p:processor> </p:config> Then, I receive a error message: "Invalid byte 2 of 2-byte UTF-8 sequence". Should XPL support chinese language? Or, The configuration is wrong? 昨 天 和 女 友 b u y 疯 了 ! ! ! 年 末 万 种 精 品 大 促 销 , 8 0 万 大 奖 天 天 送 ( 绝 对 保 真 ) -- 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
|
> I use OPS develop a application. I find a problem: XPL don't support
> chinese language. For example: > The segment code of model.xpl: > <?xml version="1.0" encoding="UTF-8"?> > <p:config > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <p:param name="instance" type="input"/> > <p:param name="data" type="output"/> > > <p:processor name="oxf:xslt"> > <p:input name="data" href="#instance"/> > <p:input name="config"> > <form xsl:version="2.0"> > <items> > <xsl:for-each select="/form/items/item"> > <item> > <name><xsl:value-of select="name"/></name> > <age><xsl:value-of select="age"/></age> > <addr>中国</addr> > </item> > </xsl:for-each> > </items> > </form> > </p:input> > <p:output name="data" ref="data"/> > </p:processor> > </p:config> > Then, I receive a error message: "Invalid byte 2 of 2-byte UTF-8 > sequence". Should XPL support chinese language? Or, The configuration is > wrong? Yes, any Unicode character should be able to make it through an XPL pipeline. But you have to make sure that your editor actually produces UTF-8, if you add the UTF-8 charset declaration at the beginning of the document. The error message your report is typical of those cases where an editor writes characters using an encoding different from UTF-8. -Erik -- 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 |