In my case I ended up recreating the project. I created a new Wonder app project, then I dragged my java classes, my WO components, my web server resources into the new project.

And now it works. How weird huh? I got really close to solving it but I was wasting too much time on that. I just hope it doesn't start happening again. :-)


On Mar 20, 2009, at 4:33 AM, Gino Pacitti wrote:



Well not solves it, but it works, and £ symbols in the POP up menu displayed in the browser are correct....

When I have more time to debug I might get to the root...

Gino

On 19 Mar 2009, at 21:42, Ricardo J. Parada wrote:

Yep... I would not say that solves it :-)


On Mar 19, 2009, at 5:36 PM, Chuck Hill wrote:

Mixing unicode (\u00A3) and a Latin encoding suggests that you have just hidden the problem, not solved it.

Chuck


On Mar 19, 2009, at 2:34 PM, Gino Pacitti wrote:

Just a follow up on the pound sign...

I used this in my web page HTML :
<meta http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">

And used -

new NSArray(new Object[] {" \u00A3 15,000 property Cover"});

Using \u00A3 in the String instead of implicit £ seemed to do the job...

Gino


On 19 Mar 2009, at 20:35, Ricardo J. Parada wrote:

So what about JD-GUI? That's not something I pasted. I'm looking at the compiled code and the characters are wrong. If I do the same for the other app that does work, JD-GUI does display the characters correctly.

Anyways, I think this points to a problem in Eclipse I think because it did not compile the string into a UTF-8 constant.


On Mar 19, 2009, at 4:10 PM, Chuck Hill wrote:

I would not interpret much into those two results. It just means the encoding type is not getting pasted.



On Mar 19, 2009, at 1:01 PM, Ricardo J. Parada wrote:


Another interesting discovery...

In Eclipse, the .java looks like this:

        public String test = "Niño José";

and in JD-GUI it looks like this:

<Picture 13.png>

then if I simply try to copy that line of code from Eclipse into this email message then it looks as follows when I paste it in:

        public String test = "Ni–o JosŽ";

Ok... so we have three different versions of that string and no clue what's going on because Eclipse keeps telling me that the .java file is in UTF-8. But copy and paste into another app (i.e. Mail) doesn't work.



On Mar 19, 2009, at 3:33 PM, Lachlan Deck wrote:

Does the component of your other app have a woo file with the right encoding set?

On 20/03/2009, at 6:16 AM, Ricardo J. Parada wrote:

I actually created a new Wonder app with a single component Main.wo. I put this in the Main.java file.

        public String test = "José";

then I had my Main.wo display that. I built the embedded version of this app and it DOES display correctly. I'm trying to figure out why it doesn't display correctly in my other app.

I'll let you know too if I find out.  :-)



On Mar 19, 2009, at 3:05 PM, Gino Pacitti wrote:

SUre Ricardo

Yes I will let you know... will have to go through some encoding documentation and do some homework..

Gino
On 19 Mar 2009, at 18:59, Ricardo J. Parada wrote:


Let me know if you figure it out because I have not been able to figure out this and I'm using Wonder on a small test project and have specified UTF-8 everywhere I can imagine. In my case however, it only happens when I build an embedded version of the app and run it. Strings coming from String constants in the java file (as seems to be your case) do not display correctly. On the other hand, if the Strings come from the database through EO String properties, or text in the .html or text from binding values in the .wod file, then all characters are displayed correctly.





On Mar 19, 2009, at 2:41 PM, Gino Pacitti wrote:

Hi Chuck

Yes the Component is also set to UTF-8...

If I change the encoding to Latin-1 on the HTML page I see the pound symbol but with a L at a 90 degree clockwise before it..

Gino
On 19 Mar 2009, at 18:28, Chuck Hill wrote:


On Mar 19, 2009, at 9:30 AM, Gino Pacitti wrote:

Could anyone point me in the right direction ...

I have a WOPOP UP menu item

list = NSArray with entries that have £ symbols as part of the contents

NSArray list = new NSArray(new Object[] { "Some string with a £10000 value in it"})

The item is bound to a string...

The HTML page as encoding set to UTF-8 yet the pop up menu item displays triangles with ? marks where the £ symbols should be....

What am i doing wrong....

Thanks in advance

Is the encoding of the class file UTF-8 too?

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects







-----------------------------------------------------
Gino L. Pacitti   Base Enterprise UK
Email: g...@base-enterprise.co.uk
Phone:  sales: 0845 094 9784
Mob: 07980 851 953
World Wide Phone: 02032391945
(local rate charge to wherever we are located in the world)

Aol: kris121
Msn: ginok...@hotmail.com
Skype: ginkris
Mac.com: ginok...@mac.com

http://www.base-enterprise.co.uk

mail: Base Enterprise
PO BOX 674
East Grinstead
West Sussex
RH19 3ZG

Base Enterprise LTD
Company Number 04339224
Registered in England & Wales

Registered Member of the UK Web Design Association.
Accredited by Business Link and a member of the FSB.

Web Design, coding and information architect
Java, Web Objects and Database Developer
HTML, XML, Javascript and WAP technologies.
-----------------------------------------------------

This email and any attachments is confidential and may be legally privileged and protected from disclosure. It is intended solely for the use of the individual or entity to whom it is addressed and
others authorized to receive it.

If you are not the intended recipient of this e-mail of any parts of it please telephone +44 845 094 9784 immediately upon receipt
or contact s...@base-enterprise.co.uk

No other person is authorized to copy, forward or disclose,
distribute or retain this e-mail in any form.

_______________________________________________
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/rparada%40mac.com

This email sent to rpar...@mac.com


-----------------------------------------------------
Gino L. Pacitti   Base Enterprise UK
Email: g...@base-enterprise.co.uk
Phone:  sales: 0845 094 9784
Mob: 07980 851 953
World Wide Phone: 02032391945
(local rate charge to wherever we are located in the world)

Aol: kris121
Msn: ginok...@hotmail.com
Skype: ginkris
Mac.com: ginok...@mac.com

http://www.base-enterprise.co.uk

mail: Base Enterprise
PO BOX 674
East Grinstead
West Sussex
RH19 3ZG

Base Enterprise LTD
Company Number 04339224
Registered in England & Wales

Registered Member of the UK Web Design Association.
Accredited by Business Link and a member of the FSB.

Web Design, coding and information architect
Java, Web Objects and Database Developer
HTML, XML, Javascript and WAP technologies.
-----------------------------------------------------

This email and any attachments is confidential and may be legally privileged and protected from disclosure. It is intended solely for the use of the individual or entity to whom it is addressed and
others authorized to receive it.

If you are not the intended recipient of this e-mail of any parts of
it please telephone +44 845 094 9784 immediately upon receipt
or contact s...@base-enterprise.co.uk

No other person is authorized to copy, forward or disclose,
distribute or retain this e-mail in any form.

_______________________________________________
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/rparada%40mac.com

This email sent to rpar...@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/lachlan.deck%40gmail.com

This email sent to lachlan.d...@gmail.com

with regards,
--

Lachlan Deck




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects- d...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
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/ginokris%40mac.com

This email sent to ginok...@mac.com

-----------------------------------------------------
Gino L. Pacitti   Base Enterprise UK
Email: g...@base-enterprise.co.uk
Phone:  sales: 0845 094 9784
Mob: 07980 851 953
World Wide Phone: 02032391945
(local rate charge to wherever we are located in the world)

Aol: kris121
Msn: ginok...@hotmail.com
Skype: ginkris
Mac.com: ginok...@mac.com

http://www.base-enterprise.co.uk

mail: Base Enterprise
PO BOX 674
East Grinstead
West Sussex
RH19 3ZG

Base Enterprise LTD
Company Number 04339224
Registered in England & Wales

Registered Member of the UK Web Design Association.
Accredited by Business Link and a member of the FSB.

Web Design, coding and information architect
Java, Web Objects and Database Developer
HTML, XML, Javascript and WAP technologies.
-----------------------------------------------------

This email and any attachments is confidential and may be legally
privileged and protected from disclosure. It is intended solely for
the use of the individual or entity to whom it is addressed and
others authorized to receive it.

If you are not the intended recipient of this e-mail of any parts of
it please telephone +44 845 094 9784 immediately upon receipt
or contact s...@base-enterprise.co.uk

No other person is authorized to copy, forward or disclose,
distribute or retain this e-mail in any form.

_______________________________________________
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/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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/rparada%40mac.com

This email sent to rpar...@mac.com


-----------------------------------------------------
Gino L. Pacitti   Base Enterprise UK
Email: g...@base-enterprise.co.uk
Phone:  sales: 0845 094 9784
Mob: 07980 851 953
World Wide Phone: 02032391945
(local rate charge to wherever we are located in the world)

Aol: kris121
Msn: ginok...@hotmail.com
Skype: ginkris
Mac.com: ginok...@mac.com

http://www.base-enterprise.co.uk

mail: Base Enterprise
PO BOX 674
East Grinstead
West Sussex
RH19 3ZG

Base Enterprise LTD
Company Number 04339224
Registered in England & Wales

Registered Member of the UK Web Design Association.
Accredited by Business Link and a member of the FSB.

Web Design, coding and information architect
Java, Web Objects and Database Developer
HTML, XML, Javascript and WAP technologies.
-----------------------------------------------------

This email and any attachments is confidential and may be legally
privileged and protected from disclosure. It is intended solely for
the use of the individual or entity to whom it is addressed and
others authorized to receive it.

If you are not the intended recipient of this e-mail of any parts of
it please telephone +44 845 094 9784 immediately upon receipt
or contact s...@base-enterprise.co.uk

No other person is authorized to copy, forward or disclose,
distribute or retain this e-mail in any form.

_______________________________________________
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/rparada %40mac.com

This email sent to rpar...@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

Reply via email to