# Encoding of logo on bot certificate

**URL:** https://meta.discourse.org/t/encoding-of-logo-on-bot-certificate/169124
**Category:** Bug
**Created:** [November 3, 2020, 2:48pm UTC](https://meta.discourse.org/t/encoding-of-logo-on-bot-certificate/169124 "2020-11-03T14:48:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [November 3, 2020, 2:48pm UTC](https://meta.discourse.org/t/encoding-of-logo-on-bot-certificate/169124/1 "2020-11-03T14:48:07Z")

</div>

There seems to me a problem with the current encoding of the forum logo on the discobot certificates.

As I have been [having trouble](https://meta.discourse.org/t/very-slow-discobot-certificate-generation-on-our-server/168547) with the discobot certificates, I had a glance at the svg that is being generated.

This jumped out:

```plaintext
...
    <text x="269.2915" y="240.94" text-anchor="middle" font-size="24" fill="#020403" font-family="Tangerine, Tangerine">
      Mentalstring
    </text>
    &lt;g transform=&quot;translate(242.29149999999998 350)&quot;&gt;
  &lt;image height=&quot;55px&quot; width=&quot;55px&quot; xlink:href=&quot;data:image/png;base64,[LONG BLOB IN HERE]=&quot;/&gt;
&lt;/g&gt;
  </g>
  <g id="Layer_1-2" data-name="Layer 1">
..

```

That seemed encoded when it shouldn’t, so I converted the entities, and got the Discourse logo which was missing:

Here’s the [current certificate](https://meta.discourse.org/t/greetings/95761/43):

 ![Screenshot 2020-11-03 at 14.43.04](https://global.discourse-cdn.com/meta/original/3X/2/2/222b2485dbe1f4cbaf972fe6df8631895162a7b3.jpeg)

And here’s the same svg but with (manually) fixed encoding:

 ![Screenshot 2020-11-03 at 14.42.56](https://global.discourse-cdn.com/meta/original/3X/2/6/261e3e6d492c7f120524bdaf55bfa571a644129b.jpeg)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [January 22, 2021, 2:37am UTC](https://meta.discourse.org/t/encoding-of-logo-on-bot-certificate/169124/4 "2021-01-22T02:37:53Z")

</div>

The PR is ready with the fix and will get merged soon.

[https://github.com/discourse/discourse/pull/11805](https://github.com/discourse/discourse/pull/11805)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [January 24, 2021, 7:31pm UTC](https://meta.discourse.org/t/encoding-of-logo-on-bot-certificate/169124/5 "2021-01-24T19:31:44Z")

</div>


