Title: echo unicode in php
Last modified: October 10, 2017

---

# echo unicode in php

 *  [losrack](https://wordpress.org/support/users/carlos-jaramillo/)
 * (@carlos-jaramillo)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/echo-unicode-in-php/)
 * Hi,
 * I have this line of code…
 *     ```
       echo do_shortcode('<center><a href="'.$link.'" class="button addtocartbutton">info</a></center>');
       ```
   
 * And I want to output an unicode icon instead of “info”
 * I have tried so many things …
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fecho-unicode-in-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [kyjus25](https://wordpress.org/support/users/kyjus25/)
 * (@kyjus25)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/echo-unicode-in-php/#post-9574686)
 * Pasting the unicode character should do the trick. Replacing the “info” text 
   with this horse won’t do the trick? ♞
 * I would suggest a better alternative would be to you use free icon library called
   [Font Awesome](http://fontawesome.io/icons/). You should be able to find a similar
   icon that you need there. There should be some documentation on how to set up
   the CDN on their website.
 * Furthermore, just as a recommendation. You shouldn’t need do_shortcode, there’s
   no shortcode in your string. a regular echo statement should suffice. This may,
   actually, fix your problem if do_shortcode() is escaping some characters.

Viewing 1 replies (of 1 total)

The topic ‘echo unicode in php’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [unicode](https://wordpress.org/support/topic-tag/unicode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kyjus25](https://wordpress.org/support/users/kyjus25/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/echo-unicode-in-php/#post-9574686)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
