Title: Wrong encoding using sinatra theme from HTML DOM structure
Last modified: November 14, 2020

---

# Wrong encoding using sinatra theme from HTML DOM structure

 *  Resolved [cagalj](https://wordpress.org/support/users/cagalj/)
 * (@cagalj)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wrong-encoding-using-sinatra-theme-from-html-dom-structure/)
 * Hi,
 * I have problem while using your theme. With other themes there is no problem 
   with encoding characters. The problem is when I set some hardcoded characters
   in index.php <p> Dobrodošli(Welcome on my language) </p> it will translate it
   to: Dobrodo?li.
    When I print text from database from articles the encoding is
   right. In html tag I tried using <meta charset=”UTF-8″>, but the problem still
   exist.
 * Any suggestion or help will be appreciate.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [cagalj](https://wordpress.org/support/users/cagalj/)
 * (@cagalj)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wrong-encoding-using-sinatra-theme-from-html-dom-structure/#post-13662731)
 * I solve the problem.
 * The problem was using IDE with wrong encoding. I edited file and it save with
   wrong encoding. I change default encoding to UTF-8 and now it’s working great.
    -  This reply was modified 5 years, 6 months ago by [cagalj](https://wordpress.org/support/users/cagalj/).
 *  [Branko](https://wordpress.org/support/users/brankoconjic/)
 * (@brankoconjic)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wrong-encoding-using-sinatra-theme-from-html-dom-structure/#post-13716656)
 * Hey,
 * I’m glad to hear you managed to solve that.
 * Pozdrav!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong encoding using sinatra theme from HTML DOM structure’ is closed
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sinatra/1.4.1/screenshot.jpg)
 * Sinatra
 * [Support Threads](https://wordpress.org/support/theme/sinatra/)
 * [Active Topics](https://wordpress.org/support/theme/sinatra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sinatra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sinatra/reviews/)

## Tags

 * [encode](https://wordpress.org/support/topic-tag/encode/)
 * [text](https://wordpress.org/support/topic-tag/text/)

 * 2 replies
 * 2 participants
 * Last reply from: [Branko](https://wordpress.org/support/users/brankoconjic/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/wrong-encoding-using-sinatra-theme-from-html-dom-structure/#post-13716656)
 * Status: resolved