cancel
Showing results for 
Search instead for 
Did you mean: 

Japanese/Chinese File Names & Content.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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