• 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: Localization Help! (was Localizer Default vs. Browser)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localization Help! (was Localizer Default vs. Browser)


  • Subject: Re: Localization Help! (was Localizer Default vs. Browser)
  • From: Joshua Paul <email@hidden>
  • Date: Thu, 12 Jun 2008 17:39:07 -0700

I successfully am delivering Chinese using directions from <http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Quickstart >:

"To handle internationalization in Project WONDER, delete the takeValuesFromRequest from your Session class (which should now be derived from ERXSession). Likewise, delete the createResponseInContext method from your Application class (which should now be derived from ERXApplication). Then add the following call to your Application constructor:
ERXMessageEncoding.setDefaultEncodingForAllLanguages("UTF-8");"


...and also this note from Pierre Frisch:

"Just one word of advice on the encoding name. The naming of encoding has changed in Java, it used to be encoding it is now character name. The interesting thing is that the names have changed there used to be no "-" and now there is one:

	Charset			Description

US-ASCII Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set
ISO-8859-1 ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1
UTF-8 Eight-bit UCS Transformation Format
UTF-16BE Sixteen-bit UCS Transformation Format, big-endian byte order
UTF-16LE Sixteen-bit UCS Transformation Format, little-endian byte order
UTF-16 Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark


	The old name still work but you suffer a small penalty.

	Pierre
	--
	Pierre Frisch
	email@hidden"


On Jun 12, 2008, at 4:48 PM, email@hidden wrote:


Message: 2
Date: Thu, 12 Jun 2008 18:10:10 -0400
From: Drew Thoeni <email@hidden>
Subject: Re: Localization Help! (was Localizer Default vs. Browser)
To: WebObjects-Dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

Cool. I got it working. Was not setting the localizer in the session.

But, now that English and Spanish are working, I'm having a problem
with Arabic. If I use the Mac's Qwerty Arabic keyboard option, I can
type some characters into the Localizable.strings file (which is saved
UTF-16) and the characters look as expected. But, when they get
replaced into the delivered web page, I get a bunch of question marks
"??? ?? ???"

I've also changed the meta tag in the component HTML: <meta http-
equiv="Content-Type" content="text/html; charset=utf-16"/>

Any one done any work with four-byte languages like Arabic or Chinese?

Best,

Drew

-- Josh Paul email@hidden

twitter: joshpaul
linkedin: joshpaul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Question about create/modify Relationship in Entity Modeller
  • Next by Date: Re: Localization Help! (was Localizer Default vs. Browser)
  • Previous by thread: Question about create/modify Relationship in Entity Modeller
  • Next by thread: Unit testing
  • Index(es):
    • Date
    • Thread