cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 許議中 <john...@erp.tw>
Subject how to change xsp input encoding in xsl
Date Fri, 08 Dec 2006 15:17:32 GMT
Hi!

I want to do a form, when input some words, it can use url to call other
web site to get a qrcode.

the xsp input like this:

    <form method="GET">
      <input type="text" name="username">
        <xsp:attribute name="value"><xsp-request:get-parameter
name="username" default="[yourname]" as="string"/></xsp:attribute>
      </input>
      <input type="submit" name="submit" value="Submit"/>
    </form>
the default font encoding is UTF-8.


the xsl like this:

        <img align="middle" width="100" height="100">
          <xsl:attribute name="src">http://qrcode.jp/qr?q=<xsl:value-of
select="form/input/@value"/>
          </xsl:attribute>
        </img>

it ok when the input words is alpha and english, but when other words
like chinese japanese, it's wrong.

I think it's encoding problem, how to change the input encoding for the url.

Best Regards

johnson

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message