garbled characters in fullcalendar weekly display

Asked 2 years ago, Updated 2 years ago, 114 views

I use fullcalendar.
Characters get garbled when you turn the month on the weekly display.

enter image descriptionhere

This code is full calendar settings.

<script>
$(document).ready(function(){

    $('#calendar').fullCalendar({
    columnFormat: {
        month —'ddd',
        week: 'ddd M/D',
        day: 'dddd'
    },
    titleFormat: {
        month: 'YYYYY Year M month',
        week: 'YYYYY, M/D day',
        day: "YYYYYYYYYYYYYYYYYYYYYYYY
    },
    buttonText: {
        prev: '<', // <
        next: '>', // >
        prevYear: '<<', // <<
        nextYear: '>>', // >>
        today: 'Today',
        month —'Month',
        week: 'Week',
        day: 'Day'
    },
    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December',
    monthNamesShort: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December',
    dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
    dayNamesShort: ['Sun', 'Mon', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Sat',

});

});

javascript html jquery fullcalendar

2022-09-30 21:19

2 Answers

Language settings are available at the URL below.

https://fullcalendar.io/docs/text/lang/

If it is simply written in Japanese, the ja.js contained in the fullcalendar source should be
Why don't you load more?

I checked the loading in the following order.

<script src="source path to fullcalendar/dist/fullcalendar.js"></script>
<script src="source path to fullcalendar/dist/locale/ja.js"></script>
<script src="scheduler source">/script>

Same as Kamiya555


2022-09-30 21:19

Everything from html to fullcalendar to import is utf8.
Characters are garbled only during the week when crossing the month.
Missing information. https://fullcalendar.io/scheduler/
I use the fullcalendar scheduler.


2022-09-30 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.