Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

DK Photography Template Doesn't Show some Turkish Letters WordPress

Hello, I bought the DK PHOTOGRAPHY template and installed it. Everything works fine except for some Turkish letters. I like the fonts, but for instance I can not type the letter "Ğ" or "Ş". When I type them and update the post, they appear as question marks.

Thanks!

Answers (3)

2012-01-12

RNWest answers:

Hi There,

try using html for these characters

Ğ and Ş

also check your header php for

<meta http-equiv="content-type" content="text/html;charset=utf-8" />


Thanks

2012-01-12

Kemal Pince answers:

Hi there;
I don't know that theme but it may be due to cufon fonts the theme may be using as many fancy themes do. If that's the case it means the cufon font file(s) do not contain the turkish characters. To fix it, you'll need to go to http://cufon.shoqolate.com/generate/ and generate a new cufon font file that includes the Turkish characters. After doing that you need to add that file to the directory where the cufon fonts are kept. Or simply disable the cufon fonts on your theme and use straight web safe fonts.
MKP


ozgunulusoy comments:

Hi, thanks for your reply Kemal. I couldn't locate the cufon font files. Their extension would be .js, right? There is a subfolder named JS under the theme folder, it has some .js files but none of them seem like font names. There is one file called cufon.js though, I don't know if that helps?

Unfortunately, the template doesn't let me disable the cufon fonts.

How can I make sure that the template uses cufon fonts? Thanks.


Kemal Pince comments:

If you have the cufon.js file it means the theme is using cufon fonts (unless it was placed there accidentally which is highly unlikely). The cufon font files will be named like fontname.js and I'm sure you'll find them if you do a search in the theme folder. If you're not already using Firefox with the Firebug extension you should switch to it. Install Firebug for Firefox and examine the HTML code for the text with the missing characters. You'll see something like:

<h2>
<cufon class="cufon cufon-canvas" alt="360 " style="width: 53px; height: 24px;">
<cufon class="cufon cufon-canvas" alt="TEST TEXT" style="width: 93px; height: 24px;">
<cufon class="cufon cufon-canvas" alt="MORE TEST TEXT" style="width: 102px; height: 24px;">
<canvas width="124" height="27" style="width: 124px; height: 27px; top: -3px; left: -1px;"></canvas>
<cufontext>TEST TEST</cufontext>
</cufon>
</h2>

This is proof that the theme is using cufon fonts. Generate a new cufon file with the missing characters and name it exactly same as the one the theme is using. Rename the old file (in case you need to switch back) and upload the new one. It should work.

Hope this helps.

KP

2012-01-12

Francisco Javier Carazo Gil answers:

Hi,

Without talking about cufon, that can be a problem, look at the header.

You have the next:

<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8" />


Your language is not "en-US" and the meta tag is not very common, use the next one better:

<meta http-equiv="content-type" content="text/html;charset=utf-8" />


Also remember, encode all your files in UTF-8 (if you use Windows or Linux, with Wine, you can use [[LINK href="http://notepad-plus-plus.org/"]]Notepad++[[/LINK]]).


ozgunulusoy comments:

It appears that the problem was about my database settings. I created a php file and ran it on my server. It changed the encoding system and now problem is solved. Thanks to everyone.


Francisco Javier Carazo Gil comments:

If you need anymore, tell me.