Issue Details (XML | Word | Printable)

Key: MDL-13389
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jon Papaioannou
Reporter: Tatsuya Shirai
Votes: 1
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 09/Feb/08 02:00 PM   Updated: 07/Jan/09 01:59 AM
Return to search
Component/s: Calendar
Affects Version/s: 1.8.4
Fix Version/s: None

File Attachments: 1. Zip Archive moodlelib.zip (115 kB)

Issue Links:
Dependency
 

Participants: Frank Ralf, Jon Papaioannou and Tatsuya Shirai
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
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.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Frank Ralf made changes - 07/Jan/09 01:54 AM
Field Original Value New Value
Link This issue will help resolve MDL-14149 [ MDL-14149 ]
Frank Ralf added a comment - 07/Jan/09 01:59 AM
Only found this issue after having worked on MDL-14149.

1) My findings confirm the above.
2) I linked both issues.

Frank