on 5/24/2000 6:07 AM, Jian He at [EMAIL PROTECTED] wrote:

> i want to localize jyve to chinese
> i add a new class(JyveLocalization_zh.java) and compiled
> but i can't see any chinese, only some ???
> i find turbine dos not set the codeset of ContentType.
> i change the code in RunDataFactory and solved the question:
> 
> bash-2.03 $ diff new/RunDataFactory.java old/RunDataFactory.java
> 64,66d63
> < // Turbine Classes
> < import org.apache.turbine.services.resources.*;
> <
> 126,133d122
> <
> <         // set ContentType
> <       String charset =
> <             TurbineResources.getString("locale.default.charset", null);
> <         if (charset != null)
> <         {
> <             data.setContentType("text/html; charset=" + charset);
> <         }

your patch is backwards...but other than that, it looks good. :-)

"<" means remove.

">" means add.

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to