Dear Craig,

the file properties are set correctly to UTF-8 and the original file shows
nicely in the editor as should,
the preprocessed version however is still corrupted unless I disable the
preprocessor,
any hints? perhaps Omri can shed a light about "preprocessor.preprocess(is,
bos, charset);" which seems to ignore the
charset,
any possibility to get a log of these operations?
where is the code you quote taken from? the eclipseME plugin sources?
perhaps I can debug it and help fix it,

bests,
--tzurs

On 10/23/07, Craig Setera <[EMAIL PROTECTED]> wrote:
>
> tzur,
>
> As of 1.7.6, the preprocessor is Omry's preprocessor and there is no
> other choice in the matter.  Looking at the code, it goes something like
> this...
>
>         File localFile = srcFile.getLocation().toFile();
>         String charset = srcFile.getContentDescription().getCharset();
> ....
>         try {
>             preprocessor.setSymbols(symbols.toString());
>             preprocessor.preprocess(is, bos, charset);
>
> So, you can see that the character set is being pulled from the file's
> content description.  That can be controlled via the properties of the
> file.  Please check the file properties and see if the character set
> encoding is set correctly.
>
> Craig
>
> tzur Sayag wrote:
> > Hi Guys,
> >
> > I'm a very very happy user of eclipseME and generally have 0 issues
> > with it.
> > lately (I can't pin point the exact time) I have the following problem,
> > I have a java file (aa.java) which is saved as UTF-8 and contains many
> > strings in various languages.
> > when I run the midlet (both emulator and device), the strings are all
> > corrupted. by corrupted I mean that some letters (I can't seem to pin
> > point the issue) get corrupted and are displayed as 2 chars (square
> > and ?) as if the encoding was completely ignored.
> > I've tried everything possible with the file (it happens on various
> > files on this project) but nothing fixes the problem.
> > today I noticed that the problem is not just runtime, the java files
> > are copied (eclipseME I assume) to a directory called
> > .processed/
> > looking at the java files in there I see the exact problem, the files
> > are all corrupted (string literal wise)
> > I'm pretty sure something got corrupted in my eclipseME configuration
> > because everything ran fine until just a while ago,
> > i can easily attach the original file/s and the .processed ones if
> > this helps in any way,
> > if I disable preprocessing which I need, the problem is gone. (by
> > preprocessing I mean right click the project and click j2me),
> >
> > info: using eclipse 3.2.2 eclipseME 1.7.6
> > I'm not sure how to tell which preprocessor I'm using as I've seen
> > some notes about Omri's new preprocessor, but I'm not sure if this is
> > the one that
> > I'm using, I haven't done anything special to use or no use it other
> > than selecting the "enable preprocessing" thing on the j2me context
> menu.
> >
> > I would appreciate any hint because this is a major problem for me,
> > Best regards,
> > --tzurs
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Eclipseme-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/eclipseme-users
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to