Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13389

function userdate() returns wrong string (mixed different character encoding) in multi-byte character encoding environment (ex. in Japanese)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • 1.8.4
    • Calendar
    • None
    • MOODLE_18_STABLE

      For example, Daily format in calendar,
      Friday, 1 February 2008 (English)
      2008? 02? 1?(???) (Japanese): by modified function userdate()
      2008?? 02? 1??(???) (Japanese): by original function userdate()

      $format is multibyte characters(UTF-8) in japanese-lang-file.
      But return value of strftime('%A') on japanese windows version PHP contains non-UTF-8 characters.

      Therefore $format must be converted to $localewincharset at first in japanese environment. I think that there are no bat influences by converting $format to $localewincharset in other language.

            pj Jon Papaioannou (Inactive)
            shirai Tatsuya Shirai
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.