I'd check two things:
1. Are your files saved with the proper encoding? (utf8)
2. Does your html host file or whatever html file that displays your
files' content has this: "content="text/html;charset=utf-8""?


On Jun 16, 6:30 am, zujee <[email protected]> wrote:
> Hi All,
> I have some files which contains english, french and japanese.
> When I try to read file from server and try to poup in client side ,
> it seems some unwanted squres in between of each line.
>
> I read the file in serverside like
> private String readFile(String fileName)
>     {
>         try
>         {
>         String contents = new String("".getBytes("UTF-8"), "UTF-8");
>
>             FileInputStream fstream = new FileInputStream(fileName);
>             DataInputStream in = new DataInputStream(fstream);
>             BufferedReader br = new BufferedReader(new
> InputStreamReader(in));
>             String strLine = new String("".getBytes("UTF-8"),
> "UTF-8");
>
>             // Read File Line By Line
>             while ((strLine = br.readLine()) != null)
>             {
>                 contents += strLine + '\n';
>             }
>             // Close the input stream
>             in.close();
>             return contents;
>         }
>         catch (Exception e)
>         {// Catch exception if any
>             e.printStackTrace();
>             return null;
>         }
>
>     }
>
> In client side i tried to popup the message through asynchrmous call.
>
> What might be the issue
> Please help
> thanks
> zuje
--~--~---------~--~----~------------~-------~--~----~
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