this post was submitted on 09 Nov 2023
1 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

When checking the weather for different locations in org-babel, I encountered an issue where the symbol for partly cloudy was not displayed correctly. Here is the code I used:

#+BEGIN_SRC shell :results output
curl 'wttr.in/{Paris,SanJose,Washington}?format=4'
#+END_SRC

#+RESULTS:
: Paris: 🌧   🌡️+10°C 🌬️↗9km/h
: SanJose: ☀️   🌡️+16°C 🌬️↘15km/h
: Washington: ⛅️  🌡️+12°C 🌬️↓4km/h

The symbol of partly-cloudy in washington was not rendered:

https://preview.redd.it/oisno3plx9zb1.png?width=641&format=png&auto=webp&s=54d2246de4877f8c08bdb98fc8504b27ea1b36da

I'm currently using Emacs 29.1 on Windows 10, and have set the symbol fonts as ""Segoe UI Emoji" which does have symbol of partly-cloudy.

(set-fontset-font t 'symbol "Segoe UI Emoji" nil 'prepend)

I alterntively tried "Symbola" font but the issue repeats. How could solve the problem?

top 2 comments
sorted by: hot top controversial new old
[–] MinimumType2549@alien.top 1 points 1 year ago

And this morning Nov9, the results started coming back in Celsius :( unexpected.

[–] AbstProcDo@alien.top 1 points 1 year ago

The issue was resolved by substituting UTF-8 with UTF-16:

(set-default-coding-systems 'utf-16)

https://preview.redd.it/aego1de5zbzb1.png?width=730&format=png&auto=webp&s=838c4970dfcbc6e3025d9932794796e68157f02b