Skip to content

Localized month names may be problematic #37

Description

@eserte

A today's conversion of a fit file using fit2gpx.pl and a German locale created an invalid XML file due to

        <name>Track 19-Mär-23 11:58</name>

where the umlaut-a was in iso-8559-1 encoding, not in utf-8 encoding.

Suggestions:

  • I think ISO8601 datetimes are the best option nowadays. So the strftime format in
    $f_startTime = POSIX::strftime("%d-%b-%y %H:%M", @lt);
    is probably better rewritten to "%FT%T" or so
  • Alternatively keep the %b format, but make sure that it's at some point converted to utf-8, either by using something like binmode(TMP, ':utf8') or Encode::encode_utf8 or so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions