-2

Google input tools fonts are not rendering in my website.

I am creating a website which support multi language to type. I have typed in malayalam and the font are showing correctly while trying and in the preview page it was showing like this:

മലയാളഠà´à´¨àµà´¨à´¾ ഭാഷ à´à´¤à´¿ മഹതàµà´¤à´

In the database it was store like this

<p>മലയാളം എനàµÂനാ ഭാഷ അതി മഹതàµÂതം&nbsp;&nbsp;</p>

I am new to php and I don't know why it was showing like this. I have included the my post page and preview code page in pastebin.

Post page: http://pastebin.com/94t9wXVU

Preview page: http://pastebin.com/SHUYpvUW

2
  • I am NOT part of those who gave negative vote. However i think your problem is a charset problem. Have you tried to change the charset of your page ?
    – John Max
    Mar 9, 2015 at 16:40
  • john-max thank you for your reply.. I found an solution from another website same as stackoverflow. The mistake I have done is added below. As I can say who ever given negative vote will make user's like me to not post any question's in this website Mar 9, 2015 at 16:58

1 Answer 1

0

Find the solution.

change the collation to utf8_general_ci in the database because utf8_unicode_ci is requrid in mysql

Changed the line like this

$val=utf8_encode($description); <--- Removed and

$val=$description; <--- added like this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.