# Unicode characters in Discourse threads

**URL:** https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401
**Category:** Offtopic
**Tags:** unicode
**Created:** [November 12, 2021, 7:18pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401 "2021-11-12T19:18:29Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [November 12, 2021, 7:18pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/1 "2021-11-12T19:18:29Z")

</div>

How does one write a unicode character in a discourse thread?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 12, 2021, 7:33pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/2 "2021-11-12T19:33:40Z")

</div>

Copy-pasta: æ, ø, ∰, …

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [November 12, 2021, 7:53pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/3 "2021-11-12T19:53:29Z")

</div>

If there is no source where to copy from? What then?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 12, 2021, 7:57pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/4 "2021-11-12T19:57:43Z")

</div>

I would argue that the glyph is THE source.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [November 12, 2021, 8:09pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/5 "2021-11-12T20:09:29Z")

</div>

Copy paste from Julia REPL - I don’t know anything about scientific computing, I only really use Julia as a Unicode character creation machine

---

<div class="post-metadata">

### Author: ![ffevotte](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffevotte/32/6587_2.png) [@ffevotte](https://discourse.julialang.org/u/ffevotte)
#### Post date: [November 12, 2021, 8:10pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/6 "2021-11-12T20:10:13Z")

</div>

A few solutions that I tend to use:

1. write (La)TeX (as in `$\alpha$`)
2. fire up a Julia REPL and auto-complete the unicode character from its TeX representation (`\alpha<TAB>`) and copy-paste it
3. get a nearby emacs window and use [`M-x insert-char`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Insertion.html) to insert the unicode character and copy-paste it
4. there are tons of web sites where its easy to find unicode character by name and copy them to the clipboard. Here is an [example](https://unicode-table.com/en/search/?q=alpha)

(I have to admit that I’m not always a big fan of unicode characters in source code, but typing unicode in a Julia REPL is so painless that I sometimes compose parts of my emails in the Julia REPL)

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 12, 2021, 8:12pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/7 "2021-11-12T20:12:01Z")

</div>

> [@PetrKryslUCSD](#):
>
> If there is no source where to copy from?

Then there will also be no internet where to write on discourse.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [November 13, 2021, 12:34am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/8 "2021-11-13T00:34:53Z")

</div>

“There is no source” simply means “I don’t know where to find the source”. Where is THE source of glyphs that you speak of?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [November 13, 2021, 12:41am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/9 "2021-11-13T00:41:02Z")

</div>

> [@nilshg](#):
>
> I don’t know anything about scientific computing, I only really use Julia as a Unicode character creation machine

And the other way around, I use Julia to find which is the LaTeX code that gives me some characters I don’t know how to type:

```julia
help?> ∰
"∰" can be typed by \oiiint<tab>

```

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [November 13, 2021, 12:51am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/10 "2021-11-13T00:51:34Z")

</div>

> [@PetrKryslUCSD](#):
>
> Where is THE source of glyphs that you speak of?

If you want to find a convenient symbol to represent a closed volume integral, I bet you will search the internet and look how the glyph looks like. Let you guess from the hits that show up for unicode and glyph, which one is human readable and easier for copy-pasta into discourse.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [November 13, 2021, 2:31am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/11 "2021-11-13T02:31:41Z")

</div>

For those who, like me, are looking for some forms of unicode characters, here is a good source: [http://www.unicode-symbol.com/](http://www.unicode-symbol.com/) . To include the characters in a discourse thread, use the html form.

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [November 13, 2021, 5:40am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/12 "2021-11-13T05:40:09Z")

</div>

On a related note, I highly recommend [Detexify LaTeX handwritten symbol recognition](https://detexify.kirelabs.org/classify.html) which lets you draw a symbol then it uses ML to find possible latex matches. (or [http://shapecatcher.com/](http://shapecatcher.com/) for unicode)

---

<div class="post-metadata">

### Author: ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)
#### Post date: [November 14, 2021, 7:26am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/13 "2021-11-14T07:26:41Z")

</div>

One more approach: from the REPL, you can use Julia’s `clipboard` function, which copies a given string to the system clipboard:

```julia
julia> “â²” |> clipboard

```

This also enables the use of REPL history & search modes to quickly recover some commonly-used string (I’ve found it useful for marking up stacks of homework submitted through online portals during COVID).

---

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [November 14, 2021, 8:29am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/14 "2021-11-14T08:29:38Z")

</div>

If you’re on macOS, I’ve developed a [custom “US International - Scientific” keyboard layout](https://michaelgoerz.net/notes/the-us-international-scientific-keyboard-layout.html) that will let you type a very large number of math-unicode symbols directly.

It skews a little towards my personal use case of quantum physics, but it should cover Julia more broadly pretty well.

Presumably, the keyboard layout could be ported to Windows/Linux (not my using those, but they also have ways of setting up custom keyboard mappings)

---

<div class="post-metadata">

### Author: ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)
#### Post date: [November 14, 2021, 11:49am UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/15 "2021-11-14T11:49:11Z")

</div>

If the Unicode character has a LaTeX command supported by the Discourse math engine (MathJax I think) then while writing your message you can write e.g. `$\theta$` or `$\iint$` and the math will be shown in the preview on the right side. You can copy the Unicode symbols from there.

---

<div class="post-metadata">

### Author: ![tfiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tfiers/32/32427_2.png) [@tfiers](https://discourse.julialang.org/u/tfiers)
#### Post date: [January 6, 2022, 6:02pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401/16 "2022-01-06T18:02:21Z")

</div>

For Windows and Linux you can use a compose key: [Touch-Typing Unicode: How and Why](http://sjbyrnes.com/unicode.html)  
I get heavy mileage out of [WinCompose](https://github.com/samhocevar/wincompose), typing greek letters and symbols everywhere.
