• Resolved hkarahan

    (@hkarahan)


    Dear Alex,

    I’m trying to create a simple “Q & A” type quiz for my personal dictionary site.
    I’m letting users to use “free text” areas for answers.

    So I’ve created possible answers by your management form. But comparison between my “possible answer list” and “user answers” works only in English alphabet. When users try to use special characters and answer the question, it just returns with “incorrect” result. I would like to use some other special characters in other languages (like ? a ? ? ? ? ? ? ü … etc. both in capital and lower cases) on free text area. Is it possible to fix this somehow?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hkarahan

    (@hkarahan)

    [SOLVED] Ok, I’ve got it! I’ve followed codes and found the problem.

    There is draw.php file within quisFrontEnd folder. The answers on my quiz were converting into lowercase but I had to use multi byte funtcion to show UTF-8 chars on my page so here is my modification:

    Line 1143: $IDStr.=strtolower($optionValue).’,’;
    Converted to: $IDStr.=mb_strtolower($optionValue, ‘UTF-8′).’,’;

    Line 1217: $correctStr = substr($correctStr,0,-1);
    Converted to: $correctStr = mb_substr($correctStr,0,-1, ‘utf-8’);

    Line 1218: $IDStr = substr($IDStr,0,-1);
    Converted to: $IDStr = mb_substr($IDStr,0,-1, ‘utf-8’);

    Now it works perfect!

    Plugin Author Alex Furr

    (@alexfurr)

    Hi,

    Brilliant well done. Apologies, I totally missed this topic, but I’m glad you got this fixed.

    Alex

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using foreing language chars. in free text area’ is closed to new replies.