tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
83.68k stars 2.51k forks source link

[bug] Encoding bug in the liscense page of nsis #9031

Closed Yuxiza closed 4 months ago

Yuxiza commented 7 months ago

Describe the bug

I'm in system language Chinese. When adding liscence file to the nsis intaller, I'm having an encoding issue in the liscense page. This looks like an encoding conversion issue between gbk and utf-8. 53f3b2e5a07aad1c6a0695ccd95448c3 Thank you for your attention.

Reproduction

Expected behavior

Display utf-8 characters correctly

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 122.0.2365.52
    ✔ MSVC: Visual Studio 生成工具 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - pnpm: 8.15.4
    - yarn: 1.22.19
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.8
    - tauri-build [RUST]: 2.0.0-beta.6
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.6

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../prosit
    - devUrl: http://localhost:3001/
    - bundler: Vite

Stack trace

No response

Additional context

No response

laozl commented 4 months ago

使用带bom的utf-8格式就行了. 微信截图_20240612170745