Donate Share

TCExam - Computer-Based Assessment

Subscribe

Error displaing special character

  1. 2009-11-03 19:09:37 UTC

    I modified /shared/code/tce_ page_userbar.php file to display the Name and Surname of the user logged instead of Username. Everything is fine except the special characters witch are not correctly displaied. For example the character "ă" is displaied like "%C4%83". What did i do wrong? Thanks

  2. 2009-11-04 08:16:36 UTC

    I can't help you without looking at your source code.

  3. 2009-11-04 17:37:55 UTC

    This is the line witch i've been modified:

    // display user information echo '<span title="'.$l['huserinfo'].'">'.$l['wuser'].': '.$SESSION['sessionuserlastname'].' '.$SESSION['sessionuserfirstname'].'</span>'.KNEWLINE; if ($SESSION['sessionuser_level'] > 0)

  4. 2009-11-04 18:40:27 UTC

    Data stored on session variables is html-encoded. Try to use the unhtmlentities() function to decode them.

  5. 2009-11-04 20:42:14 UTC

    How can I do that?...

  6. 2009-11-10 21:17:19 UTC

    Please help me! Thanks

  7. 2009-11-11 07:49:09 UTC

    Try the following:

    urldecode($SESSION['sessionuserfirstname']);

    Be sure you are using the latest TCExam version and spend some time reading the license terms.

  8. 2009-11-15 19:13:34 UTC

    It worked. I send you the modified code at info@tecnick.com. Thank you!

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.