Re: Accentued chars in EOGenerator variables
Pascal Robert <[email protected]> Mon, 6 Dec 2010 14:51:30 -0500
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok, we found out that if we add this line to eclipse.ini: -Dfile.encoding=UTF-8 The problem goes away. So it look like that even if our workspace and the .eogen file are set in UTF-8, when the .eogen is written, it revert to MacRoman unless we set the file.encoding property. 2010/11/10 Pascal Robert <[email protected]> > > Le 2010-11-09 à 19:51, David LeBer a écrit : > > > > > On 2010-11-09, at 7:46 PM, Pascal Robert wrote: > > > >> > >> Le 2010-11-09 à 19:38, Dev WO a écrit : > >> > >>> Hello Pascal, > >>> > >>> I'm not sure I understand it correctly. Are you saying the strings are > written directly into the Java file? > >> > >> Not directly, it's EOGen who write them. > >> > >>> If so, I think there's something wrong with UTF-8 Java file and > accentuated strings. You have to get the string out to a text file in UTF-16 > to have it work. > >> > >> All our Java classes are in UTF-8, the only thing in UTF-16 we have is > the Localizable.strings files. > > > > I've had problems with converting from one encoding to another. > > > > This usually works for me: > > > > Open file in BBedit. > > > > Cut the text and save. > > > > Reopen in the correct encoding, paste the text and save. > > > > See if that makes any difference for you. > > The chars were displayed correctly in BBEdit. But I see that if I change > the value in the EOGenerator editor, the chars are displayed correctly. BUT > if I close the editor and open it back, the chars are wrong :-( > > So I tried to fix it by deleting the .eogen, create a new one, and retype > the variable's value. No luck, same problem. > > >> > >>> Not sure if it's what you are looking ofr, > >>> > >>> Xavier > >>> > >>> > >>> > >>>> We are moving from WOLips 3.3 to WOLips 3.6 (v 3.6.6208), and I found > a last minute problem. EOGenerator in the past was using ISO-Latin-1, but I > think a year ago it was moved to UTF-8, which is good. So I changed the > encoding of our templates to UTF-8, and that's fine. The problem is is that > we have EOGenerator variable with value is : > >>>> > >>>> Copyright © 2009, ACAIQ, Tous droits réservés. > >>>> > >>>> It was still encoded in ISO-Latin-1 so I changed it, but when I > generate the EOs, the copyright shows up like this : > >>>> > >>>> Copyright ¬© 2009, ACAIQ, Tous droits r√©serv√©s. > >>>> > >>>> If I open the .eogen file in BBEdit, I do see correctly and the file > is really encoded in UTF-8, so I don't know why the variable content show up > badly in the Java class :-( It's only the variable who is problematic, the > accentued chars in the templates show up just fine. > >>>> > >>>> Anyone having the same problem? > >>>> > >>> > >> > > > > ;david > > > > -- > > David LeBer > > Codeferous Software > > 'co-def-er-ous' adj. Literally 'code-bearing' > > site: http://codeferous.com > > blog: http://davidleber.net > > profile: http://www.linkedin.com/in/davidleber > > twitter: http://twitter.com/rebeld > > -- > > Toronto Area Cocoa / WebObjects developers group: > > http://tacow.org > > > > > > > > > >