Tuesday, March 22, 2005

Character Encoding in Tapestry

I need to output CHinese on webpage and gb2312 is required. I was testing for a night and didn't find a way to do this untill I saw this post on mailinglist.

In short, should add something like this:



to the .application file or to the relevant .page files and the templateswould use the UTF-8 encoding.

and then extends BasePage like this:

public IMarkupWriter getResponseWriter(OutputStream out) {
HTMLWriter writer = new HTMLWriter("text/html; charset=GB2312",
out);
//getPage().getEngine().setLocale(Locale.CHINESE);
return writer;
}

Reference:
Encoding

27 Comments:

Anonymous Anonymous said...

Hi, yup this paragraph is really pleasant and I have learned
lot of things from it concerning blogging.
thanks.

Review my page günstige private krankenversicherung studenten
Also see my webpage: was ist private krankenversicherung

10:22 AM  
Anonymous Anonymous said...

Hurrah, that's what I was seeking for, what a data! existing here at this web site, thanks admin of this web site.

Also visit my website; auto ohne schufa

3:16 PM  
Anonymous Anonymous said...

Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing
all that over again. Anyhow, just wanted to say superb blog!


Feel free to surf to my weblog Top 10 Web Hosting Services

10:32 PM  
Anonymous Anonymous said...

Thank you for any other informative website. The place else could I am getting that type of information
written in such a perfect method? I have a mission that I
am just now operating on, and I've been at the glance out for such information.

My page - search optimization company

3:49 AM  
Anonymous Anonymous said...

Hi everyone, it's my first visit at this website, and piece of writing is really fruitful for me, keep up posting such content.

my web-site :: caribbean island vacations
Also see my web site :: deals on vacations

5:49 AM  
Anonymous Anonymous said...

Wow, marvelous blog format! How lengthy have you ever been running a blog for?
you made blogging look easy. The full glance of your site
is excellent, as smartly as the content!

Also visit my webpage; pkv beiträge im alter

8:01 PM  
Anonymous Anonymous said...

hello there and thank you for your info – I've definitely picked up anything new from right here. I did however expertise a few technical points using this web site, since I experienced to reload the web site many times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I'm complaining, but slow loading instances
times will very frequently affect your placement in
google and could damage your high-quality score
if advertising and marketing with Adwords. Anyway I'm adding this RSS to my email and can look out for a lot more of your respective exciting content. Make sure you update this again very soon.

Also visit my web-site - Fafsa Student Loan Consolidation

10:29 PM  
Anonymous Anonymous said...

I'd like to find out more? I'd like to find out some additional information.


my blog private krankenversicherung mindesteinkommen 2011
My web page - pkv beihilfe

8:50 AM  
Anonymous Anonymous said...

Wow, marvelous blog layout! How lengthy have you ever
been blogging for? you made blogging glance easy. The full glance of your web site is excellent, as
smartly as the content material!

Here is my website ... affiliate join

9:30 PM  
Anonymous Anonymous said...

You have made some decent points there. I looked on the internet for additional information
about the issue and found most individuals will go along with your views on this web site.


Also visit my web-site; reseller hosting provider

11:43 PM  
Anonymous Anonymous said...

You've made some really good points there. I looked on the internet for more info about the issue and found most individuals will go along with your views on this web site.

Look into my blog post ... lowering private student loan payments

1:43 AM  
Anonymous Anonymous said...

I'm impressed, I must say. Seldom do I come across a blog that's
both educative and interesting, and without a doubt, you've hit the nail on the head. The issue is something which not enough men and women are speaking intelligently about. I am very happy that I came across this in my search for something relating to this.

Look into my site - business opportunities uk

5:53 AM  
Anonymous Anonymous said...

Hi, i think that i saw you visited my weblog so
i came to “return the favor”.I am trying to find things
to enhance my website!I suppose its ok to use a few of
your ideas!!

My web page - work for stay at home moms
my site - stay At home mums

11:29 PM  
Anonymous Anonymous said...

I think this is among the most vital info
for me. And i am glad reading your article. But should remark on some general
things, The web site style is great, the articles is really great : D.
Good job, cheers

My blog post: based business ideas

7:07 PM  
Anonymous Anonymous said...

I am in fact grateful to the holder of this website who has shared this great post at here.


Visit my site: krankenkasse privat versichern

9:15 PM  
Anonymous Anonymous said...

I do not know whether it's just me or if perhaps everybody else encountering problems with your website. It looks like some of the text on your posts are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well? This may be a issue with my browser because I've had this
happen before. Thank you

My blog post :: auslandskrankenversicherung

8:48 PM  
Anonymous Anonymous said...

We stumbled over here by a different web address and thought I should check things out.
I like what I see so now i am following you.
Look forward to looking into your web page repeatedly.

Also visit my web page; günstige kredite online

7:42 AM  
Anonymous Anonymous said...

Heya i am for the primary time here. I found this board and
I in finding It really helpful & it helped me out a lot.
I am hoping to give one thing again and aid others like you aided me.



Feel free to surf to my page: private Krankenversicherung Vergleiche
my web site - pkv lotse

10:26 AM  
Anonymous Anonymous said...

WOW just what I was searching for. Came here by searching
for federal college loans

Also visit my web site :: apply for student loans online

11:32 AM  
Anonymous Anonymous said...

Hello! I could have sworn I've been to this web site before but after looking at a few of the articles I realized it's new to me.
Anyways, I'm certainly pleased I found it and I'll be book-marking it
and checking back frequently!

My web blog: make money now online

8:01 AM  
Anonymous Anonymous said...

Its like you read my mind! You seem to know so much approximately this, like you wrote
the guide in it or something. I feel that you just could do with some p.
c. to pressure the message home a bit, however other than that, that is great blog.
A fantastic read. I'll definitely be back.

Review my website: in home job

4:12 PM  
Anonymous Anonymous said...

I got this web site from my buddy who shared with me concerning this site and at the moment this time
I am visiting this web site and reading very informative
content at this time.

Feel free to surf to my web blog :: student loans for bad credit
Also see my site - bad credit finance

12:10 PM  
Anonymous Anonymous said...

tramadol online tramadol withdrawal 50mg - order tramadol medication

7:42 AM  
Anonymous Anonymous said...

Why users still make use of to read news papers when in this technological world
the whole thing is available on net?

Feel free to visit my weblog: Las Vegas Washer Parts

11:57 AM  
Anonymous Anonymous said...

If yοu do, then you are just going to ρut
doubts in her mind and thаt is not a gߋod thing if you wɑnt tߋ be able to
have a long term relationship with your girlfriend. First off, you should know that
most guys who are successful աith women are not exceptionally wise or rich.
This gave birth to the idea of making online films ѕhowing
people how to do eye make-up.

Feel free to νisit my weƄ site: ultimɑte hеrpes protocol free (ultimateherpesprotocolsystem.blogspot.com)

1:19 PM  
Anonymous Anonymous said...

Replies 16th floor (Author:hztvnews nike free run 2on 2014-03-05 07:
58)

Replies 1st nike run shoesfloor (Author: @ QQ1154698072 on 2014-03-04 20:17)

Folding nike free run womensrain ......


==========

Compared to victims Tianyi cheap nike free shoescase, this
little nurse what Koo, compared to victims Tianyi case, nike free run 3.0how this little rest nurse degree!






My website :: cheap nike free run

12:04 PM  
Anonymous Anonymous said...

e cigarettes, best e cigarette, electronic cigarette starter kit, electronic cigarettes, ecigarette, e cigarette

12:48 AM  

Post a Comment

<< Home