Git Product home page Git Product logo

Comments (6)

kensanata avatar kensanata commented on August 12, 2024

from mastodon-archive.

kensanata avatar kensanata commented on August 12, 2024

I created an account with then name "Alex Schroeder ⚠" and the text "Testing äöü" and was able to make a backup and export it to HTML without an error. Thus, I need to know more. I'm using Python 3.6.3, I'm on macOS, $LANG is not set, locale says:

alex@Megabombus:~/src/mastodon-backup (master %=)$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

Any other info you can provide?

from mastodon-archive.

kensanata avatar kensanata commented on August 12, 2024

I'm a bit concerned that you're not using the latest version. I have print(html) on line 276 of mastodon-backup-to-html.py.

from mastodon-archive.

emanchado avatar emanchado commented on August 12, 2024

It was an issue with locales. I wonder why I never had any problems with it before. Maybe Python3 is more strict or something? :-S

In any case, thanks. PEBKAC.

BTW, I had the latest version. Pulling now brought several commits, all of them <10h old. About the location of print(html), hm, it's still on line 294. I have no idea what's going on. I only see one branch in the repo, I'm up-to-date, and I don't have local changes :-/

from mastodon-archive.

kensanata avatar kensanata commented on August 12, 2024

from mastodon-archive.

emanchado avatar emanchado commented on August 12, 2024

Ah, sorry, forgot to mention it for reference. The output of locale used to be:

LANG=
LANGUAGE=
LC_CTYPE=POSIX
LC_NUMERIC=nb_NO.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="POSIX"
LC_MONETARY=nb_NO.UTF-8
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT=nb_NO.UTF-8
LC_IDENTIFICATION="POSIX"
LC_ALL=

The only change to make it work was setting LC_TYPE to (in this case) nb_NO.UTF-8. Thanks for the tip, and sorry again for the noise.

from mastodon-archive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.