Skip to content

Package installer fails with multibyte characters in the readme #16725

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

Open
rthrash opened this issue Mar 28, 2025 · 0 comments
Open

Package installer fails with multibyte characters in the readme #16725

rthrash opened this issue Mar 28, 2025 · 0 comments
Labels
area-packages Issues, related to package management and workspaces bug The issue in the code or project, which should be addressed.

Comments

@rthrash
Copy link
Member

rthrash commented Mar 28, 2025

Bug report

Summary

On sites without a multibyte database, the installer fails to download or install manually uploaded Extras that have multibyte characters in the readme.

Step to reproduce

  1. Set up a 3.x (and I suspect 2.x, untested) site without a multibyte-compatible DB
  2. Try to install modAI 0.11 or other package with emojis in the readme

Observed behavior

Could not download and create transport package with signature: modai-0.11.0-pl

Expected behavior

The Extra should download and install. There are workarounds—see below—but it would be nice for devs to be able to use any character in their readme files.

Environment

non-UTF8mb4 databases

Possible Solution

There may be a possilbe solution outlined here, along with a great explanation of the challenges involved above that anchor link. Hat tip to @jaygilmore for finding that.

Workarounds

@gpsietzema, who originally pointed this out, suggested a workaround on databases that can support it:

So when i change to utf8mb4 + utf8mb4_unicode_ci it works

You can manually convert emojis to html-entieis, e.g., 🚀 → 🚀. On Mac, Raycast can copy the unicode values of any emoji character using ⌘⇧U in their emoji picker, e.g., U+1F680 for this example. You then would swap the U+ with &#x and add a semicolon at the end ; of each unicode string—if multiple, strip out any spaces between them.

@rthrash rthrash added bug The issue in the code or project, which should be addressed. area-packages Issues, related to package management and workspaces labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-packages Issues, related to package management and workspaces bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

No branches or pull requests

1 participant