Re: Pound symbol
Re: Pound symbol
- Subject: Re: Pound symbol
- From: Q <email@hidden>
- Date: Fri, 20 Mar 2009 07:39:07 +1000
What encoding does your .java file have? And when it doesn't work, how
was that .java file compiled?
.java files should ALWAYS be UTF-8, because that's what javac expects,
however eclipse doesn't care.
My gut feel is that your .java file is MacRoman and when eclipse
compiles the class it works, and when javac compiles the class it
doesn't.
On 20/03/2009, at 6:35 AM, 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: email@hidden
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: email@hidden
Skype: ginkris
Mac.com: email@hidden
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 email@hidden
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 (email@hidden
)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-----------------------------------------------------
Gino L. Pacitti Base Enterprise UK
Email: email@hidden
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: email@hidden
Skype: ginkris
Mac.com: email@hidden
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 email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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
with regards,
--
Lachlan Deck
_______________________________________________
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
--
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
_______________________________________________
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