Characters that cannot be used when registering SCM in JavaAPI Java.lang.IllegalArgumentException: UNMAPPABLE[1]
Java.lang.IllegalArgumentException: UNMAPPABLE[1] occurs if there is a "~" in the file name registered in the SCM.
Is there a way around this error?
I can only come up with a way to convert "~" to "~", etc.
When compressing into ZIP file, an error occurs.
I want to know which characters get errors besides "~". What characters get an error?
I am compressing zip files in the following ways
ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile), Charset.forName("UTF-8"));
ZipInputStream zipInStream = new ZipInputStream(fileInputStream, ”MS932”);
|
Accepted answer
Ralph Schoon (63.1k●3●36●45)
| answered Apr 06 '22, 8:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER So you zip with MS Code Page 932 and unzip with UTF-8? Does that even make sense?
Otherwise the question lacks all information that might be useful. It does not show where the error happens it is tagged completely incorrect, no product name, no version.
If you want people to remote debug your code, please have the courtesy to provide the information.
Kodac Hasubo selected this answer as the correct answer
|
One other answer
thank you Ralph Schoon
After changing ZipOutputStream to MS932,
it succeeded. Thank you very much.
ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile), Charset.forName("MS932"));
|
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.