Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#296 Error after adding a course (Italian localization)

claroline_1.11
closed
nobody
None
5
2013-07-11
2012-12-19
Boris
No

I have installed claroline on localhost:

  • Windows 7 x64
  • Apache 2.2.17
  • Php 5.3.5
  • MySql mysqlnd 5.0.7-dev - 091210 - $Revision: 304625 $
  • database charset: utf8-default-collation
  • Installation language: Italian
  • Main language: Italian

I got the following error after adding a course.
The problem is in the character 'ì' in "Mercoledì" (-> Wednesday)
in the format of date (Mercoledì 19 Dicembre 2012)

Note 1:
the course has been added correctly
the problem seems to be in the message for the administrator.

Note 2:
I re-insalled claroline with:
- Installation language: English
- Main language: English
and all works correctly

thanks in advance
Boris

Fatal error: Uncaught exception 'Exception' with message '1366:Incorrect string value: '\xEC 19 D...' for column 'message' at row 1' in D:\hosting\loc\test\www\claroline\messaging\lib\recipient\recipientlist.lib.php:134
Stack trace:
- 0 D:\hosting\loc\test\www\claroline\messaging\lib\recipient\recipientlist.lib.php(59): RecipientList->addMessage(Object(MessageToSend))
- 1 D:\hosting\loc\test\www\claroline\inc\lib\claroCourse.class.php(1323): RecipientList->sendMessage(Object(MessageToSend))
- 2 D:\hosting\loc\test\www\claroline\course\create.php(102): ClaroCourse->mailAdministratorOnCourseCreation('Boris', 'Sclauzero', 'boris@localhost...')
- 3 {main}
thrown in D:\hosting\loc\test\www\claroline\messaging\lib\recipient\recipientlist.lib.php on line 134

Discussion

  • Boris
    Boris
    2012-12-19

    I discovered that the localization files have been saved using ANSI encoding.
    I opened the files with notepad and I saved them using UTF-8 encoding
    - complete.lang.php
    - install.lang.php
    - locale_settings.php
    - missing.install.lang.php
    - missing.lang.php

    The problem has been solved

    I hope this can be useful
    Thanks
    Boris

     
  • Boris
    Boris
    2012-12-19

    Note:
    It's also necessary to declare:
    $charset = 'utf-8';
    in "locale_settings.php"
    Boris

     
    Last edit: Boris 2012-12-19
  • Boris
    Boris
    2012-12-19

    Error in: complete.lang.php (Italian localization)
    Replace: %course_category
    With: %course_categories

     
  • Frederic Minne
    Frederic Minne
    2013-07-11

    • status: open --> closed