on 5/24/2000 9:54 AM, Jon Stevens 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. :-)
actually...that wasn't the right way to implement it at all...i have just
checked in the right way. :-)
for example, you don't want to hard code the setting of the text/html...what
if you wanted to send out text/plain as a different charset?
-jon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]