last day (15 days later) » 

8:46 PM
3
A: Zipfile character encoding challenge

Y Treehugger CymruI have just tested this for myself, using the link you provided, and downloaded a file entitled Thank You For You Project.zip, which I had to unzip using passcode 864 with 7-zip, and encountered no problems at all. Did I have the right file?

 
The original poster is just using regular Zip and not 7-zip. So that’s the solution! Seems like similar advice was posted here‌​.
 
I tried 7z l archive.zip, 7za l archive.zip, and 7z x archive.zip, and I still get the garbled filename Figure_<U+0082>ป<U+0082>ฬ‘ผ.fx using 7-Zip [64] 16.02.
 
I could send you the un-archived files, if you want? - I'm guessing that I will not be able to send them via superuser.com without countless thousands of reputation or something; but private message an email address instead and I will sort it out now for you. I notice, too, that you are using the command-line version of 7-zip, so this may be a factor, too, as the command-line and GUI versions may be functionally different.
Further thought: I have just been looking at the commands for 7-zip (command-line) and cannot see any special functionality for encoding; so I am wondering if, possibly, the archive is working for me as a result of additional encoding pages in my operating system (Windows 7, x64)? ...so, with this in mind, have you tried adding further encoding pages / languages to your system, and then unzipping the archive after a reboot? The link given by JakeGould is also very informative.
 
Thanks, but I have the files. Finding out the real filename did take a lot of work, partly because what looked like four non-printable bytes was actually six (this isn't dirt on your screen! <82><BB><82>̑<BC>), but now I have it. This question is about whether unzip is working correctly.
 
No problem, but I am still inclined to think that there may be an issue with the encoding pages for your system: do the file names display correctly when transferred to a different machine or system? Also, maybe this will answer some of your questions: unicode.org/charts
 
8:46 PM
Are you sure the specific file's name was decoded correctly? It reads 'Figure_その他.fx'? There's definitely a lot I don't know about encoding, but the mystery here is that it seems like there's two filenames in the zip file (using two different encodings), and unzip is using the bad one.
 
The original archive was "Thank You For You Project.zip", which unzipped to directory "Thank You For You Project". Inside that directory are two sub-directories: "DT Ext Loreley Meiko" and "DT Ext Orbit Miku". I have had a quick look at the coding on the .zip file and the directory names are correct. I also remember using tools with similar functionality to "gucharmap", but none of them worked after Windows 98... =[
 
Most of the filenames are in ascii. Do you have the file 'DT Ext Loreley Meiko/Normalmap Effect/Skin/Figure_その他.fx' or does it use other characters? (I deleted my comment about character map because it seemed offtopic)
 
Is that how it is supposed to read?! =] - No, I have something 'orrible that turns into blocks when I try to post it in this comment box; but even the characters that post correctly do not look like your characters. - Give me a couple of minutes whilst I PM you an image.
 
Ok, so 7zip doesn't do better. Check the screenshot; I'm guessing it looks like the part that looks like [...]w.fx. I do wonder if I should post this on (or move to?) another Stackexchange site. This question is a bit more in-depth than most ones about decompressing. The linked question has nothing new, except some incorrect advice about what unzip -a does. I also think not being able to comment if you don't have reputation is silly, so I upvoted your answer even though it doesn't answer the question.
 
No problem, - if you do not feel that I can help you then fair enough (no offense taken). The image should be viewable at: [2a00:b900:10a4:1::a]/figure.png . The IPv6 address needs to be in brackets when entered into a browser, but I am not certain whether the /figure.png does or not (currently having some fun getting my website working properly).
The name displays correctly, though, only not in ASCII. - The characters are familiar, but I am certain that they are not Katakana.
 
8:46 PM
Thanks for the effort. Something is wrong with my IPv6 connectivity and it appears beyond my ability to troubleshoot it. This is where a character map comes in handy though! I highlighted the filenames in the screenshot in the question; the second one contains Thai script, and I'm guessing it's similar to what you see.
 
No problem, - got it in one: Thai script, - I knew those characters were familiar. Right, in unicode the filename reads: 0E1A 0E2C ' 0E1C . fx - unicode.org/charts/PDF/U0E00.pdf . BTW: that apostrophe is like the start curly single quote (as opposed to the end one).
 
Still ignoring the message about chat: usually if characters display uniquely instead of question marks, but are still wrong, it's because a program tried to convert them from some encoding to Unicode, which is what Linux uses and might be what some forms of Windows use. If the bits remain unconverted and a program tries to read them as if they were Unicode, that's when errors and question marks appear. In this case, I don't know what the wrong conversion steps were; helpful site doesn't help in this case.
So I'm just ignoring the problem of how the Thai script happened; I'm more concerned about the part of the zip file that reads 'Figure_����.fx'.
 

last day (15 days later) »