Comments (8)
I am not an expert but perhaps this can help you:
from pydio-core.
thanks to Falko for this link :-)
from pydio-core.
so IBM850 or CP437 ???
@Ellega did you do some actual testings?
from pydio-core.
IBM850 and CP437 works. :-)
1 - test compress with Pydio
- Put a file "été hivers éèêàâ.txt"
- Compress with Pydio "été hivers éèêàâ.txt" => "été hivers éèêàâ.zip"
- Download and read été hivers éèêàâ.zip
- I see ÚtÚ hivers ÚÞÛÓÔ.txt in ZIP
2 - test with a very basic code (see below)
- with IBM850 the file is correctly stored
- with CP437 the file is correctly stored
- with no ICONV the file is stored like with pydio
<?php
Echo "test ZIP".'<br><br>';
$zip = new ZipArchive ();
$filename = "aaa.zip" ;
Echo $filename.'<br><br>';
if ( $zip -> open ( $filename )=== TRUE )
{
Echo "GOOD : file ZIP is present".'<br>';
$zip -> addFile ( "été hivers éèêàâ.txt" , iconv ( "ISO-8859-1" , "IBM850" , "ICONV IBM850 - été hivers éèêàâ.txt" ));
$zip -> addFile ( "été hivers éèêàâ.txt" , iconv ( "ISO-8859-1" , "CP437" , "ICONV CP437 - été hivers éèêàâ.txt" ));
$zip -> addFile ( "été hivers éèêàâ.txt" , "NOICONV - été hivers éèêàâ.txt" );
$zip -> close ();
}
else
{
Echo "ERROR".'<br>';
exit( "cannot open $filename \n" );
}
?>
from pydio-core.
Can you try to patch the class plugins/access.fs/class.fsAccessDriver.php, at the very very end of the file, there is a function zipPreAddCallback, add the following line:
function zipPreAddCallback($value, &$header)
{
if(fsAccessDriver::$filteringDriverInstance == null) return true;
// THIS LINE TO ADD
$header["stored_filename"] = iconv("ISO-8859-1", "CP437", $header["stored_filename"]);
// END PATCH
$search = $header["filename"];
return !(fsAccessDriver::$filteringDriverInstance->filterFile($search)
|| fsAccessDriver::$filteringDriverInstance->filterFolder($search, "contains"));
}
from pydio-core.
This works perfectly with Pydio 5.0.4
I can't make a test with Pydio 5.1.x
Lot of things seems do not works with the last release and the access.fs if the files have an accent.
- Delete, Compress don't work
- rename, move are OK
I post more info about that in a new issue soon
(tested only with Pydio on Windows OS and Apache not with Linux)
from pydio-core.
cannot get it to work when server is on *nix platform (tested debian & macos)
from pydio-core.
mm, no actually, it seems to work on debian, when then opened on Windows. Problem is that the archive is then incorrect when opened on Mac. And that quote in file (') is breaking the name... F*cking zip :-)
from pydio-core.
Related Issues (20)
- Multiple Tabs Navigate Together HOT 1
- PHP crash on POST
- Ping returns empty response
- Building gui.ajax HOT 13
- Wrong balloon message
- Looking for Developer for a plugin or server component.
- cant give upload permission, when sharing a public link through api
- Chrome autocomplete issue
- L’objet ne gère pas la propriété ou la méthode « updateTeamUsers »
- I can't share any file to public users HOT 1
- Problems with unicode files
- Pydio 8 logout doesn't work HOT 1
- Pydio installation error HOT 2
- Pulploader not working in Shared Folders
- User properties reset on their own
- MetaStreamWrapper.php | error l.257 | message=Cannot find repository with this id
- specify the smb version (smbclient option) by workspace
- Can I append videojs-annotation-comments plugin?
- Pydio-core 8.2.5 HOT 2
- 401 unauthorised and stopped sync
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydio-core.