question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

⚖ emoji in filename is incorrectly displayed in multi-page app sidebar

See original GitHub issue

Summary

I have a multi-page streamlit app with a file called 01_⚖️_some_page.py. But instead of seeing ⚖️ some page in the side bar , I get ⚖ some page.

Steps to reproduce

  1. Create a multi-page app
  2. Create a page called 01_⚖️_some_page.py
  3. Open the browser and observe ⚖ some page

Expected behavior:

I’d expect to see afbeelding

Actual behavior:

What I actually see is: afbeelding

Is this a regression?

Not as far as I know. I have never tested this behaviour streamlit <1.10.0

Debug info

  • Streamlit version: 1.10.0 and 1.11.0 (updated after discovering bug)
  • Python version: Python 3.9.10
  • Using Conda
  • OS version: Ubuntu 20.04.4 LTS (via WSL in Win 10), also saw the issue when ran from Oracle Linux
  • Browser version: Firefox 102.0.2, Chrome 103.0.5060.134, Edge 103.0.1264.71

Additional information

I thought it was a browser issue but I’ve tested it on Firefox, Chrome and Edge Chromium. Furthermore, I can use the browser dev tools to change the emoji into a ⚖️ and get it to display the screenshot I posted under the `Expected Behavior" section.

I expect there to be something weird with this emoji, as I also had difficulties getting the right (colored vs uncolored) version to be displayed in the rendered Markdown of this PR. Can it maybe have something to do with Variant Form characters that are stripped out during the filename parsing?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
Vinno97commented, Oct 11, 2022

Found it was also really broken for multi-character emoji like 💁🏻‍♂️. Started looking into how to fix it, but it appears #5122, included in Streamlit 0.13, fixed the incorrect emoji!

0reactions
Vinno97commented, Oct 11, 2022

Sorry for the late response, but no. I actually made the images in the post using the devtools trick. It rather think it’s because this emoji is a multi-character emoji and that the variant form is somehow stripped away during loading.

Original: afbeelding

After pasting the emoji in the devtools: afbeelding

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing multipage apps! 📄 - Streamlit Blog
Let's say you built a multipage app by using st.selectbox and want ... and having an emoji in the filename of the file...
Read more >
Micro Mac Tips - LinkedIn consultancy - John Espirian
Don't go hunting for emojis while typing: press Ctrl-Cmd-Space to bring up the Emoji section of the Characters panel. Double-click the emoji you...
Read more >
Streamit multipage app saving script with emoji - Stack Overflow
I think it was a setting in the shared drive that did not permit emojis in filenames. When I moved the script to...
Read more >
OmniGraffle 7.6 Reference Manual for macOS - The Omni Group
An exploding view of OmniGraffle, showing the Stencil Browser in the left sidebar, shown. Popover: Only occasionally use stencils? You can opt to...
Read more >
Desktop App Changelog - ownCloud
We fixed a bug where unicode file names were not correctly displayed in ... Bugfix - Fallback to ownCloud sidebar icons on Mac...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found