Item14095: saving attachments fails with a wide char error message

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: AttachContentPlugin
Branches: master
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
Digest::MD5 needs byte strings. However inside Foswiki-2 everything is utf8 unicode. So before computing an md5 checksum on content it needs to be encoded appropriately.

Example

%STARTATTACH{"script.js"}%
jQuery(function($) {
   alert("Hello €");
});
%ENDATTACH%

-- MichaelDaum - 13 Jun 2016

 
Topic revision: r1 - 13 Jun 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy