• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Japanese Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese Characters


  • Subject: Re: Japanese Characters
  • From: Yasushi Shimogaisyo <email@hidden>
  • Date: Tue, 4 Nov 2003 15:47:28 +0900

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>)

  • Prev by Date: eomodeler
  • Next by Date: 5.2.2, WO Builder with Eclipse or IDEA
  • Previous by thread: Japanese Characters
  • Next by thread: Re: WODisplayGroup help
  • Index(es):
    • Date
    • Thread