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
Summary | saving attachments fails with a wide char error message |
ReportedBy | MichaelDaum |
Codebase | |
SVN Range | |
AppliesTo | Extension |
Component | AttachContentPlugin |
Priority | Normal |
CurrentState | Closed |
WaitingFor | |
Checkins | AttachContentPlugin:2c0edc1ff841 |
ReleasedIn | n/a |
CheckinsOnBranches | master |
trunkCheckins | |
masterCheckins | AttachContentPlugin:2c0edc1ff841 |
ItemBranchCheckins | |
Release02x01Checkins | |
Release02x00Checkins | |
Release01x01Checkins |