mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #17605] issue: non_ASCII UTF-8 always encoded in payload sent to model (leading to bad tokenization) #33871
Reference in New Issue
Block a user
Originally created by @mramendi on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17605
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.30
Ollama Version (if applicable)
No response
Operating System
RHEL 9
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When I enter a message in non-ASCII UTF-8, for example, Cyrillic, it should be sent to the model unmodified as UTF8, for example, "привет!". Or at least there should be a switch to enable this behaviour.
Actual Behavior
When I enter a message in non-ASCII UTF-8, for example, Cyrillic, it is sent to the model encoded with \u, for example, "\u043f\u0440\u0438\u0432\u0435\u0442!"
Steps to Reproduce
This is my particular container setup. I don't believe this is really caused by Podman/Quadlet, but I am including the relevant config files anyway. The upload failed so I paste them at the end of this message. So, steps in my specific case:
openwebui-with-playwright.yaml
apiVersion: v1
kind: Pod
metadata:
name: openwebui-playwright
spec:
containers:
---------- OpenWebUI ----------
name: openwebui
image: ghcr.io/open-webui/open-webui:main
env:
value: "http://host.containers.internal:4000"
value: playwright
value: "ws://localhost:3000" # inside the pod => localhost
value: /app/backend/data/site-packages
value: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
value: utf-8
value: False
command: ["/config/start-wrapper.sh"]
ports:
volumeMounts:
mountPath: /app/backend/data
mountPath: /run/secrets/litellm-master.key
subPath: litellm-master.key
readOnly: true
mountPath: /run/secrets/openwebui-db.pass
subPath: openwebui.pass
readOnly: true
mountPath: /config/start-wrapper.sh
subPath: start-wrapper.sh
readOnly: true
---------- Playwright browser ----------
image: mcr.microsoft.com/playwright:v1.49.1-noble
command: [ "npx", "playwright@1.49.1", "run-server", "--port=3000", "--host=0.0.0.0" ]
ports:
volumes:
hostPath:
path: /srv/hdd/openwebui-files
type: DirectoryOrCreate
hostPath:
path: /home/admin/.config/ai
type: Directory
hostPath:
path: /home/admin/.config/ai
type: Directory
hostPath:
path: /home/admin/.config/ai
type: Directory
===
openwebui-with-playwright.kube
[Unit]
Description=OpenWebUI + Playwright (internal only)
After=ai-network.service litellm.service postgresql.service
Wants=ai-network.service
[Kube]
Yaml=%h/.config/containers/systemd/openwebui-with-playwright.yaml
Network=ai.network
AutoUpdate=registry
[Install]
WantedBy=default.target
Logs & Screenshots
I see nothing relevant in the pod logs, just a series of GET and POST headers. The browser behaves normally.
Additional Information
No response
@tjbck commented on GitHub (Sep 23, 2025):
Unable to reproduce, most likely caused by the logging part. If not PR welcome!