I tried it but had trouble with getting 5.0.5-SNAPSHOT in my pom...
what is correct url for repository with tapestry snapshots now ? Hrg On 5/24/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
Hi Chris. Refer to this HowTo I just threw on the wiki: http://wiki.apache.org/tapestry/Utf8EncodingInT5 ... and feel the power of tapestry-ioc! ;-) It's still just a hack, but does the job for now. Cheers, Nick. Chris Poulsen wrote: > Hi All, > > I have had some trouble submitting some characters that are not included > in iso-8859-1. > > My test page has a text field and an expansion showing the value from > the text field. If i enter some random characters not included in > iso-8895-1 then tapestry just displays "?" instead. > > Traditionally I have solved problems like this by setting the response > Content-Type to utf-8. > > To change the default behavior of all pages I replaced the following > line in org.apache.tapestry.internal.services.PageResponseRendererImpl > > PrintWriter pw = response.getPrintWriter("text/html); > > with > > PrintWriter pw = response.getPrintWriter("text/html; charset=utf-8"); > > This makes the browser aware of which encoding it should use during > submit and as the maven-jetty-plugin defaults to utf-8 for request > character encoding nothing else has to be done when using the jetty plugin. > > However it does not feel really nice that I have to hack the framework > src to get it in; perhaps I could override the PageResponseRenderer > using my AppModule but I think it would be better if something like this > was handled by default by the framework. (I guess some of the people > posting about their troubles regarding submits of non iso-8859-1 > characters are also suffering from this?) > > Judging from the comment in the > PageResponseRendererImpl.renderPageResponse() method it is not in its > final form so my addition may be too naive. > > Could someone tell me the right/preferred way of doing this? :) > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]