You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Foror <fo...@mail.ru> on 2008/01/14 11:26:47 UTC
Re[3]: T5: decode URL with non english symbols
KM> have you tried this:
KM> http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding
It does not work. In URLCodec (commons-codec-1.3) method
public String decode(String pString, String charset)
throws DecoderException, UnsupportedEncodingException
{
if (pString == null) {
return null;
}
return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset);
}
pString normal russian text in UTF-8, after pString.getBytes(StringEncodings.US_ASCII) it is bad text.
Testing in Opera9, IE6 and FireFox2 on Tomcat 5.5
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Antwort: Re[4]: T5: decode URL with non english symbols
Posted by Foror <fo...@mail.ru>.
KM> now i see what you want... it is not possible
KM> you can only use ASCII characters in URLs,
KM> any other character has to be encoded.
Firefox URL: tag/%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D1%83 (word = "новый")
After click this link, and begin tapestry debug in CODEC.codec(input)
input = "новый" in UTF-8
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Antwort: Re[4]: T5: decode URL with non english symbols
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
now i see what you want... it is not possible
you can only use ASCII characters in URLs,
any other character has to be encoded.
please read:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
http://www.ietf.org/rfc/rfc1738.txt
Foror <fo...@mail.ru>
14.01.2008 11:29
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>
An
"Tapestry users" <us...@tapestry.apache.org>
Kopie
Thema
Re[4]: T5: decode URL with non english symbols
F> Testing in Opera9, IE6 and FireFox2 on Tomcat 5.5
Tomcat 5.5 with URIEncoding="UTF-8"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re[4]: T5: decode URL with non english symbols
Posted by Foror <fo...@mail.ru>.
F> Testing in Opera9, IE6 and FireFox2 on Tomcat 5.5
Tomcat 5.5 with URIEncoding="UTF-8"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org