on 11-08-2006 5:14 AM
Hello All,
I am having a small problem. I am having a WAS JAVA 6.40. I have created a Web Dynpro component to upload and download a file.
When I am trying to upload a file with a Japanese file name, it does not let me do that, when I am upload a file with an English name, I am able to easily do it. But when I open the file and if it contains Japanese characters then they all look corrupted of broken.
If someone has encountered this problem before can you please suggest what has to be done.
Best Wishes,
John.
Hi,
You may want to browse the Web Dynpro Java forum.
This is probably a character encoding issue. Do you convert the file contents to byte[]?
What character encoding do you use? You probably need to use UTF8.
e.g.
try {
String string = "your file contents";
byte[] utf8 = string.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
}
Good luck,
Roelof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.