PDA

View Full Version : [ubuntu] tar.gz problems



silbro
November 24th, 2008, 09:56 AM
Hello,

I have the problem, that when creating .tar.gz files with special characters such as ,, my archive cannot be extracted fully on Windows. It just misspells the special characters in the error log and sais it couldn't extract those files.

I put this under Server Platforms because I run a Ubuntu Server which creates these .tar.gz backup files.

thank you for any hint/help,
sil

silbro
December 1st, 2008, 10:07 AM
For some reason I don't believe that nobody has come across this problem besides me so far ;) There must be some germans or swiss like me, that had this problem before! Im sure of it. Can I replace the special characters with the tar command ? Is the encoding wrong ? What must I look out for?

obg123
December 1st, 2008, 04:21 PM
I've had this problem (in Sweden). I think the problem is that Linux uses ISO8859-1 while Windows uses Unicode. I don't think there is a way around this. Just use proper file names, or convert them before trying to send them to Windows. ;)

Vegan
December 1st, 2008, 05:01 PM
Unfortunately, you need to use ASCII characters to maximize portability.

silbro
December 2nd, 2008, 03:19 PM
Thank you for the replies!
Your comments make sense to me. Would this also mean, if I transfer the .tar.gz file to Windows, then move that .tar.gz file back to a linux machine, I should be able to extract all files without a problem because the characters are already in a linux format right? ;) Sry about those questions. I will be able to test this scenario in a few days. But if someone already knows the answer I'd appreciate it!

tubezninja
December 2nd, 2008, 09:30 PM
Thank you for the replies!
Your comments make sense to me. Would this also mean, if I transfer the .tar.gz file to Windows, then move that .tar.gz file back to a linux machine, I should be able to extract all files without a problem because the characters are already in a linux format right? ;)

Yes, extraction to another linux system should work just fine.

silbro
December 3rd, 2008, 09:54 AM
Thank you for your answer :)! This means my backups I'm making are all safe ;)

for me this case is solved.

sincerely,
Silvio