Attachment element - Download error when using special characters

Feb 19, 2024

I am creating courses in multiple languages. The learners have to download pdf versions of transcripts, so I use the Attachment element. This element shows the filename and a download arrow. For English, this works fine. But for languages with special characters, these characters are HTML encoded. English (Transciption.pdf) in Spanish (Transcripción.pdf becomes Transcripci%C3%B3n.pdf). The embedded file can't be downloaded unless I use the HTML encoding in the filename. But that is not a good user experience to leave special characters in the filename that is displayed on the page. In Hindi, Transcription.pdf is प्रतिलिपि.pdf which encodes to %E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A4%A4%E0%A4%BF%E0%A4%B2%E0%A4%BF%E0%A4%AA%E0%A4%BF.pdf. I certainly can't use that as the filename for a good user experience.

Does anyone know of a workaround for this other than creating text links to a Box repository of pdfs?

Be the first to reply