One simple way to check if it is Java/GWT code or the browser is to
add some UTF-8 chars straight to the html file.  If that is working
correctly then it must be either the Java file isn't UTF-8 or
something else is wrong.  Eclipse allows you to change the encoding of
files through the properties menu.

On Aug 3, 12:28 pm, Kiarash <[email protected]> wrote:
> Thank you David,
>
> I just did what you wrote and deleted the Java file and paste the code
> in the new Java file again and the same with the HTML file. I checked
> the properties and both had UTF-8 already.... but without success. On
> the browser the Swedish letters still replaced with other
> characters... My browser settings is on UTF-8 too!
>
> Do you have any other suggestions?
>
> //Kiarash
>
> On 3 Aug, 09:02, "[email protected]" <[email protected]>
> wrote:
>
> > Hi,
>
> > Have you specified theUTF-8before creating file or just change it
> > while your files were created ?
> > I've just copy paste your Label in a project where .java file 
> > areUTF-8encoded and everything works fine.
> > Just check on one of your file the properties that is attributed to it
> > (contextual menu on one of the incriminated java file): here you must
> > haveUTF-8.
>
> > On Aug 2, 9:38 pm, Kiarash <[email protected]> wrote:
>
> > > I have a problem with Swedish letters coded in Java files as when I
> > > make a Label with Swedish letters,
> > > Label myLabel = new Label("här är något på Svenska");
> > > the Swedish letters changes to strange characters in the HTML file.
>
> > > I am using Eclipse.I made sure that:
> > > the html file has <meta http-equiv="content-type" content="text/html;
> > > charset=UTF-8">
> > > the text file >properties areUTF-8
> > > the >project >properties areUTF-8
> > > the >edit >set encoding areUTF-8
>
> > > Anybody facing the same problem or have a solution... thanx!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to