Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese Characters



Heinrich,

Paste the two methods below into Application.java.

public void takeValuesFromRequest(WORequest aRequest, WOContext aContext){
aRequest.setDefaultFormValueEncoding("Shift_JIS");
aRequest.setFormValueEncodingDetectionEnabled(true);
super.takeValuesFromRequest(aRequest, aContext);
}


public void appendToResponse(WOResponse aResponse, WOContext aContext){
aResponse.setContentEncoding("Shift_JIS");
aResponse.setHeader("text/html; charset=Shift_JIS", "Content-Type");
super.appendToResponse(aResponse, aContext);
}


That will make WO handle Japanese encoding properly.
Sort of unwritten rule when using WO in the Japanese language environment!



Yasushi Shimogaisyo email@hidden

On 2003.11.4, at 11:13 Asia/Tokyo, Heinrich Beck wrote:

Hola,

Newbie question.

Very simply, I made a WOString and set the value to some Japanese
Characters.

Using Safari, I tried all the possible character encodings (UTF-8 and
the four flavors of Japanese) and got the following:

Setting the WOString to a quoted value of Japanese Characters, I
generally get three question marks (???)

I also tried some simple Hiragana, in the plain vanilla Web Objects
Builder and got the following:

WOString = ???

にほん = にほん (This is hirigana, 48 phonetic sounds  "ni-ho-n")

日本語 = blank (this is is kanji, or Chinese characters. to create this,
type the same ni ho n go and hit the space bar and VOILA..magic Kanji!
BTW the characters here mean "Japanese Language").

助けてください! Please help!

All the best,

Heinrich H. Beck ベック
Nikon, Inc / Electronic Imaging QC
1300 Walt Whitman Road
Melville, NY 11747          USA

mailto:email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Japanese Characters (From: Heinrich Beck <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.