thank you ,  thank you....

you were correct, the first section was in my pagewrapper.... so I added the 
lines to the properties file, restarted the app and it's good to go...

so I didn't need the change to the Application.java.

Ted

--- On Tue, 3/10/09, David Holt <[email protected]> wrote:

> From: David Holt <[email protected]>
> Subject: Re: Is this an encoding problem???
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Tuesday, March 10, 2009, 1:55 PM
> 
> Hi Theodore, 
> My answer to your question is inline below.
> 
> A question for WOnderers: is there any good
> reason for not setting encoding to UTF-8 in the WOnder
> project templates? Does it slow down performance compared to
> the current default?
> 
> On
> 10-Mar-09, at 10:22 AM, Theodore Petrosky
> wrote:
> 
> I
> never had to do anything special in the past to account for
> accented characters  
> (ñ é) ...
> I
> just started a new Wonder project and I am testing data
> input and I notice that instead of seeing  Señor, I see in the
> database 
> Señor (this also shows on the screen when I read
> the data into a web page).
> My
> database (postgresql) is set up with UTF-8 encoding and as I
> said this always worked (correctly) in the past.
> Do
> I need to turn on something or change a configuration so the
> user can type a option-n followed by an n to lget an enyay
> on the mac?
> I believe if you take the following steps you will be
> good to go:
> I make sure that this is in the head of all my
> HTML pages (easiest place to put it is in a PageWrapper
> component)
> <meta http-equiv = "Content-Type"
> content = "text/html;
> charset=UTF-8" />
> This should be in your properties file:
> # Project 
> Encodingpackage.name.Application.setDefaultMessageEncoding=trueer.extensions.ERXApplication.DefaultEncoding=UTF-8
> 
> and I have this in my Application.java (it might
> be redundant after setting the properties, you'd have to
> check)
>       // to have the
> web pages display foreign characters  
> private boolean enableUTFEncoding = false;
>       public void enableUTFEncoding()
> {             enableUTFEncoding = true;               
> WOMessage.setDefaultEncoding(_NSUtilities.UTF8StringEncoding);  }
> David
> 
> 
> Ted
> 
> 
>  _______________________________________________Do
> not post admin requests to the list. They will be
> ignored.Webobjects-dev
> mailing list     
> ([email protected])Help/Unsubscribe/Update
> your 
> Subscription:http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> This
> email sent to [email protected]
> 
> 



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to