*1*.add this in your tml file. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd"> *2*.in the AppModule.java, add public static void contributeApplicationDefaults( MappedConfiguration<String, String> configuration) { configuration.add("tapestry.supported-locales", "zh_CN"); ...others... }
of course you should change the "zh_CN" to your country code; *3*.and your eclipse-project encoding should be utf-8 or something supports. Mine works fine! 2008/6/10 maxthesecond <[EMAIL PROTECTED]>: > > Thanks for the answer, finally I noticed that I was using a FileUpload > component, after changing the utf8encoding filter everything turned right. > > But still if in my template a label or any text contains an extra character > tapestry will not render the page I will get "Invalid byte 2 of 4-byte > UTF-8 sequence." > If I try to use an entity Á á I'll get "The entity "Aacute" was > referenced, but not declared." > > > Now if I try to modify the layout component to encompas the language > setings > > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > > > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" > > <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> > > > Then I get: Namespace prefix for URI 'http://www.w3.org/XML/1998/namespace > ' > is not defined. > > > Wich is odd ,I don't know where the 1998 cames from. > > Thanks. > > > > > -- > View this message in context: > http://www.nabble.com/T5-UTF-encoding-tp17739633p17747818.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Yet Another Java EE Developer!