It's all about the answers!

Ask a question

Encoding problem(Mojibake) in downloaded assets


Izumi Satoh (2622) | asked Apr 07 '11, 2:52 a.m.
Hello.

I'm using RAM 7.5.0.2 on Windows XP (32bit).

And I'm facing a problem that Japanese filenames in downloaded asset are encoded incorrectly(Mojibake).

1) I uploaded files to an asset successfully via Web browser.
- Any file types lead to the same problem.
- Those files have Japanese filenames.
- Web browser is Firefox 3.6.10.

2) In the content of the asset detail information screen, those filenames are shown correctly.(no Mojibake here)

3) Pressing "Download this asset" button, a zipped file is saved on the local disk.

4) Unzipping the asset file, all Japanese files in the content are encoded incorrectly.(Mojibake)

Is there anyone who faced the same problem?

Any clue would be highly appreciated.

5 answers



permanent link
Rich Kulp (3.6k38) | answered Apr 07 '11, 5:28 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

You need to a use a newer unzip program. Many older unzip programs
assume the filenames are in the local character set that the machine
that is running the unzip is using. But with zips now coming from
anywhere this is no longer a valid assumption.

The zip filenames are stored in Unicode format. If your unzip program
doesn't understand this then they will not unzip correctly.

If you can't find a newer one that understands Unicode format filenames
RAM does provide a simple rudimentary unzip program on its "Extensions"
page. Click on the Help drop down and select the extensions page. It's
under the heading "Archive Tool"

--
Rich Kulp
Rational Asset Manager developer

permanent link
Izumi Satoh (2622) | answered Apr 08 '11, 10:55 a.m.
The zip filenames are stored in Unicode format. If your unzip program
doesn't understand this then they will not unzip correctly.


Thank you so much, Rich.

As your advice, I installed a newer unzip program which can handle Unicode format, and I unzipped the downloaded asset with it.
But it didn't work, and results into the same.

Anyway, I appreciate your help.

Izumi Satoh

permanent link
Rich Kulp (3.6k38) | answered Apr 08 '11, 1:51 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Then try the one that comes with RAM and see if it works. If it does
work then the problem is your updated zip program still doesn't know how
to Unicode filenames.

--
Rich Kulp
Rational Asset Manager developer

permanent link
Izumi Satoh (2622) | answered Apr 09 '11, 7:57 p.m.
Then try the one that comes with RAM and see if it works. If it does
work then the problem is your updated zip program still doesn't know how
to Unicode filenames.


Hi,
Thank you very much, Rich.

I downloaded the jar file RAM provides.

Could you please tell me how to use it in detail?

permanent link
Izumi Satoh (2622) | answered Apr 11 '11, 1:06 a.m.
Hi,

I found an unzip program that can handles Unicode filename and tried it as your advice.

Then, this problem has been solved!!

Thank you very much!!

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.