Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot seem to get it to work with non-english channel names #143

Open
etcy opened this issue Sep 30, 2021 · 2 comments
Open

Cannot seem to get it to work with non-english channel names #143

etcy opened this issue Sep 30, 2021 · 2 comments

Comments

@etcy
Copy link

etcy commented Sep 30, 2021

Only 4 out of 100+ channel names are english for me. So after running this, only the 4 channels appear on the side bar.
I checked the zip file just to be sure. The folders and json are intact. If I view the json file, it shows the folder names correctly (since the JSON is in UTF8).

OS is Windows 10, Japanese ver.

Any ideas?

@etcy
Copy link
Author

etcy commented Sep 30, 2021

If I do the following:

  1. Unzip the exported file
  2. Rename the folder to only english
  3. Edit channels.json, make the same rename done in (2)
  4. Create the zip again.

The missing channel now shows correctly (in english).
It's going to be a nightmare to do this manually.

Any suggestions would help. Please?

@shosatojp
Copy link

I found this is caused by the python's zipfile module. I could view channels of non ascii (Japanese) name by following steps.

  1. get tmp directory by starting with test mode.
slack-export-viewer -z slack.zip --test
# slack.zip extracted to /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
  1. remove all existing files and manually unzip to this directory
rm -rf /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964/*
unzip slack.zip -d /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
  1. start the app
slack-export-viewer -z slack.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants