[Building Sakai] [Assignment tool ] Zip upload/download does not format special character properly

Cyril Mace cyril.mace at hec.ca
Tue Apr 16 06:05:30 PDT 2013


Hello Sam,

The JIRA, as specified in SAK-20556 
<https://jira.sakaiproject.org/browse/SAK-20556> the patch (now 
integrated in the trunk) "solves the problem using text normalizer 
libraries. It replaces the known simbols like accents for the same 
letter without accents"

/*mon_résultat.txt*//is then changed to //*mon_r*//*e*//*sultat.txt*/ 
which is fine.

Our biggest issue is when we edit the comments.txt file using accents (é 
for example)  in the comment, then zip the file and use the "Upload All" 
feature to grade all the submissions of an assignment :  é are replaced 
by �characters.
I have not seen a JIRA for that specific case, I will create one with 
more details about how to reproduce this issue.


Sam Ottenhoff a écrit :
> Is your bug this JIRA?  Or is it a new bug?
>
> https://jira.sakaiproject.org/browse/SAK-20556
>
> Also, if you have a fix for a genuine bug, there is no reason it needs 
> to be only available via a special property.  Not preserving UTF-8 
> characters is considered a core bug that needs to be fixed.  We're 
> happy to use good libraries, with liberal licenses, to perform actions 
> correctly.
>
> --Sam
>
>
>
>
> On Mon, Apr 15, 2013 at 5:55 PM, Cyril Mace <cyril.mace at hec.ca 
> <mailto:cyril.mace at hec.ca>> wrote:
>
>     Hello,
>
>     On our Sakai 2.8.1 instance we were having problems with Download
>     All/Upload All feature of Assignment tool when using special
>     characters.
>
>     For example:
>
>     1) A student submit an assignment including a file named
>     /*mon_résultat.txt*//
>     /2) The instructor  downloads all the submissions of the
>     assignment => the file name will be changed to
>     /*mon_r*//*e*//*sultat.txt*/ within the bulk_download.zip archive.
>     3) The instructor update the content of the comment.txt file and
>     write a comment with special characters (éééééé), then zip it to
>     use the "Upload All" feature => the ééé are replaced by
>     ������characters in the comments area.
>
>     Has anyone experienced this problem?
>     We solved it by using the /*org.apache.tools.zip*/ library instead
>     of the native/*java.util.zip*/ one and are thinking about doing
>     the same for our 2.9.1 instance.
>     We could make the use of the apache library configurable through a
>     sakai property and submit a patch if needed.
>
>     Thanks for reading,
>
>
>     -- 
>     <http://www.hec.ca>
>     	
>     Cyril Mace
>     Analyste-Programmer
>     Direction des technologies de l'information
>     hec.ca <http://www.hec.ca>
>     Agréments 	
>     3000, chemin de la Côte‑Sainte‑Catherine, Montréal (Québec) H3T 2A7
>     Téléphone : 514 340-6000, poste 2199 
>
>     	
>     recyclez 		
>     Pensons à l'environnement
>     avant d'imprimer
>
>
>     _______________________________________________
>     sakai-dev mailing list
>     sakai-dev at collab.sakaiproject.org
>     <mailto:sakai-dev at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>     TO UNSUBSCRIBE: send email to
>     sakai-dev-unsubscribe at collab.sakaiproject.org
>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>
>


-- 
<http://www.hec.ca>
	
Cyril Mace
Analyste-Programmer
Direction des technologies de l'information
hec.ca <http://www.hec.ca>
Agréments 	
3000, chemin de la Côte‑Sainte‑Catherine, Montréal (Québec) H3T 2A7
Téléphone : 514 340-6000, poste 2199 

	
recyclez 		
Pensons à l'environnement
avant d'imprimer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4883 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 345 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5127 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 20493 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HEC_149px.png
Type: image/png
Size: 4883 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hecca.png
Type: image/png
Size: 345 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3A-2008.png
Type: image/png
Size: 5127 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Feuille_25px.jpg
Type: image/jpeg
Size: 20493 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/6f6561dd/attachment.jpg 


More information about the sakai-dev mailing list