skip to navigation
skip to content

c2.patch.filenamenormalizer 1.0b4

This patch product is for downloaded filename become strange ascii code in muluti-byte languages on Plone

Introduction

This patch product is for downloaded filename become strange ascii code in muluti-byte languages on Plone

  • When downloading file with Japanese name, downloaded file has some strange ascii coded name.
  • I think we should get file name that shows in Plone page.
  • This happens on all Plone version. I think if the file is named with multi byte code, this strange ascii name shows up.
  • Please, look at attached file to fix this problem for IE and Firefox. Other browsers, we are still working on it.

requirement

Plone 3.x (Tested by Plone 3.3.1 on MaxOS X 10.5)

Changelog

1.0b4 (2017-10-06)

  • Modify for blob bug fix [terapyon]

1.0b3 (2013-06-19)

  • Missing packaging, forgot including docs

1.0b2 (2013-06-19)

  • Adding special notify for c2.app.zipdownload

1.0b1 (2012-08-10)

  • Modify for Firefox Ver 8
  • Adding auto include plone zcml

1.0a5 (2010-07-08)

  • remove ja.py (don’t need file)

1.0a4 (2010-02-24)

  • bug fix for blob field

1.0a3 (2010-02-24)

  • bug fix for blob field

1.0a2 (2010-02-19)

  • Support blob field(plone.app.blob)

1.0a1 (2010-01-08)

  • Initial release

c2.patch.filenamenormalizer Installation

  • When you’re reading this you have probably already run easy_install c2.patch.filenamenormalizer. Find out how to install setuptools (and EasyInstall) here: http://peak.telecommunity.com/DevCenter/EasyInstall

  • Get pythonproducts and install it via:

    python setup.py install --home /path/to/instance
    

    into your Zope instance.

  • Create a file called c2.patch.filenamenormalizer-configure.zcml in the /path/to/instance/etc/package-includes directory. The file should only contain this:

    <include package="c2.patch.filenamenormalizer" />
    

Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Add c2.patch.filenamenormalizer to the list of eggs to install, e.g.:

    [buildout]
    ...
    eggs =
        ...
        c2.patch.filenamenormalizer
    
  • Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    ...
    zcml =
        c2.patch.filenamenormalizer
    
  • Re-run buildout, e.g. with:

    $ ./bin/buildout
    

You can skip the ZCML slug if you are going to explicitly include the package from another package’s configure.zcml file.

 
File Type Py Version Uploaded on Size
c2.patch.filenamenormalizer-1.0b4.tar.gz (md5) Source 2017-10-06 10KB