STACK: Displaying utf-8 characters

STACK: Displaying utf-8 characters

by Florian Hanisch -
Number of replies: 3
Dear all, 

I am trying to store utf-8 symbols in variables to have a flexible way to output different symbols, depending on what exactly was put in the variable. However, this does not work. Here is some very very basic sample code:

Question variables:

out1:"♡";
out2:"Heart";


Question text:

Variant 1: {@out1@}
Variant 2: {@out2@}

Input the number "1": 
input:ans1 validation:ans1
Now, there is only one node checking whether ans1 is 1 or not. In the true/false feedback of a prt, I tried to use {@out1@} and {@out2@} again. 

When I do a testrun, my question text ist rendered as

  Variant 1: ?
  Variant 2: Heart

and the rendering of the feedback texts shows a similar behaviour: The word "Heart" is properly displayed, the symbol ♡ (U+2661) is replaced by a questionmark. Is there any way to have STACK also displaying those symbols properly ? 

Thanks,
Florian


Average of ratings: -
In reply to Florian Hanisch

Re: STACK: Displaying utf-8 characters

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Yes, sorry about this Florian,
This is rather fragile to how Maxima is setup on your server.  It's a server configuration issue.
Chris

In reply to Christopher Sangwin

Re: STACK: Displaying utf-8 characters

by Florian Hanisch -
Thanks Chris,
as I am not in control of the update process on our servers, it seems dangerous to rely on this kind of finetuning of server configs. Chances are high that tasks will break during the next update. I will try to rely on standard stuff and symbols available through LaTeX.
Florian
Average of ratings: Useful (1)