• 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
UTF-8 Encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UTF-8 Encoding


  • Subject: UTF-8 Encoding
  • From: Aleksey Novicov <email@hidden>
  • Date: Mon, 1 Nov 2004 17:39:07 -0800

I have a localized WO app which uses UTF-8 to display pages in Korean and English, with some of the displayed text stored in language variants of Localizeable.strings. Using the following meta tag in the html, everything works fine:

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

However, this was insufficient for form data. In order to have form data render correctly coming from a database, and to have that same data stored correctly in UTF-8 in the database, I added the following:

    public Application() {
        super();
        WOMessage.setDefaultEncoding("UTF8");
	}

That solved the database encoding issue. However, the UTF-8 strings that I am reading from Localizeable.strings using WOResourceManager are now broken! They now are no longer being rendered correctly, whereas they were fine before the default encoding was set. Is this a bug in WOResourceManager? Is the only remedy to use String(byte[], charset) with strings read in by WOResourceManager?

Aleksey Novicov



_______________________________________________
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: Re: HTTP POST
  • Next by Date: Re: How to uninsert an EO from EC?
  • Previous by thread: Re: AW: CSS with WOComponent
  • Next by thread: Re: How to uninsert an EO from EC?
  • Index(es):
    • Date
    • Thread