# Emojis Not Working

**URL:** <https://forum.graphviz.org/t/emojis-not-working/1935>\
**Category:** Help\
**Created:** [December 19, 2023, 7:12pm UTC](https://forum.graphviz.org/t/emojis-not-working/1935 "2023-12-19T19:12:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [December 19, 2023, 10:44pm UTC](https://forum.graphviz.org/t/emojis-not-working/1935/2 "2023-12-19T22:44:21Z")

</div>

Works for me on macOS. Here’s it in a code block so the forum doesn’t change the quotes to smart quotes:

```auto
from graphviz import Digraph

def create_family_tree(husbands, wives, children):
    family_tree = Digraph('FamilyTree', format='png', node_attr={'shape': 'record'})

    for husband, wife in zip(husbands, wives):
        family_tree.node(husband, label=f"{husband} | {wife}")

    for parent, kids in children.items():
        for child in kids:
            family_tree.node(child)
            family_tree.edge(parent, child)

    family_tree.render(filename='family_tree', format='png', view=True)

husbands = ["Malik✅"]
wives = ["Mehwish"]
children = {"Malik✅": ['Sultan', "Usman"]}

family_tree = create_family_tree(husbands, wives, children)

```

```auto
$ python3.9 a.py

```

![image](https://global.discourse-cdn.com/graphviz/original/2X/2/220431eaa8174cb14ce36ccd4d23714f6521641f.png)

What OS are you on? What editor are you using? Are you saving the source as UTF-8?

---

_[View the full topic](https://forum.graphviz.org/t/emojis-not-working/1935)._
