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

Wrong encoding for viewing files #378

Closed
EvgeniyDoctor opened this issue Jun 28, 2023 · 3 comments
Closed

Wrong encoding for viewing files #378

EvgeniyDoctor opened this issue Jun 28, 2023 · 3 comments
Labels
bug Something isn't working web Web module

Comments

@EvgeniyDoctor
Copy link

Device Information (please complete the following information):

  • OS: DSM 6
  • Deployment: Docker
  • Browser (if relevant): [e.g., chrome, safari]
  • SIST2 Version: [e.g., v2.9.0]
  • Elasticsearch Version (if relevant) : ``

Command with arguments

version: "3"

services:
  elasticsearch:
    image: elasticsearch:7.17.9
    container_name: elastic
    restart: unless-stopped
    environment:
      - "discovery.type=single-node"
      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
      - "ingest.geoip.downloader.enabled=false"
    deploy:
      resources:
        limits:
          memory: 2g

  sist2-admin:
    image: simon987/sist2:3.1.0-x64-linux
    container_name: sist2
    restart: unless-stopped
    volumes:
      - /sist2/data:/sist2-admin
      - "/books:/host/books"
      - "/host/books/notes" # exclude
      - "/books/notes:/host/notes"
    ports:
      - 4090:4090 # sist2
      - 4091:8080 # sist2-admin
    working_dir: /root/sist2-admin/
    entrypoint: python3 /root/sist2-admin/sist2_admin/app.py
    deploy:
      resources:
        limits:
          memory: 512m

Describe the bug

I have txt files with cyrillic chars in utf8, but when i open it by link in sist2, i see broken encoding.
Link like: http://ip:port/f/hash1/hash2

Steps To Reproduce
Please be specific!

  1. create a txt file with cyrillic chars in utf8 in it
  2. index it
  3. open in web UI

Expected behavior

I should see normal cyrillic letters.

Actual Behavior

I see this:

2021

		ГЛ�В� 1

	Эмоции в разных культурах

Эмоци� - �то проце��, ...

Screenshots

Additional context

On the main page of the web UI cyrillic letters are not broken.

@EvgeniyDoctor EvgeniyDoctor added the bug Something isn't working label Jun 28, 2023
@dpieski
Copy link
Contributor

dpieski commented Jun 28, 2023

is /books local or a network mount?

@EvgeniyDoctor
Copy link
Author

/books is a local dir.

@simon987 simon987 added the web Web module label Jul 1, 2023
@simon987
Copy link
Collaborator

simon987 commented Jul 1, 2023

Thanks for the bug report, this has been fixed in 242dd67 and will be published in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web Web module
Projects
None yet
Development

No branches or pull requests

3 participants