Skip to content

Nextercism & Encoding #180

@kytrinyx

Description

@kytrinyx

We've had issues with encoding in the past.

the character α is shown as α on the site, which is what α will look like when erroneously interpreted as latin-1. —exercism/exercism#2523

I had a file whose first 1024 bytes didn't contain a Unicode character, but then a character after the 1024th byte did. [...] Submitting this file mangles the Unicode character. —exercism/cli#309

@petertseng submitted a fix for these in exercism/cli#346.

The new CLI will not be dealing in encoding at all. It will submit the files as is, and then the backend will detect the encoding. So we might get it wrong again.

Right now we tested with the fixtures that are in the https://github.com/exercism/cli/tree/master/fixtures/iteration/python/leap directory, specifically

These look like this on the new site, uploaded with the new client:

screen shot 2017-08-06 at 12 02 50 pm

@petertseng I don't know how to view the UTF-16 files locally, to verify that they're rendering correctly on the site. Would you take a look at the screenshot for me?

So. If you've had files mangled in the past in fun and interesting ways, would you mind supplying an example file (and a screenshot of what it should end up looking like) so that we can test with it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions