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 Encoding
package.name.Application.setDefaultMessageEncoding=true
er.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 (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx
%40mac.com
This email sent to programming...@mac.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com