Convert Malayalam font to unicode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
krishnik
Forum Newbie
Posts: 9
Joined: Tue Dec 08, 2009 5:57 am

Convert Malayalam font to unicode

Post by krishnik »

Hi,

I trying to copy paste contents of MS-word document which is in ML-TTKarthika font (a font used to type Malayalam language) to a HTMl editor. I would like to convert the font to utf8 format and save in a database.

I have tried functions like utf8_encode and mb_convert_encoding to convert the font. but its notworking.
Do ihave to use a mapping file to convert font to Malayalam unicode

I have found a site which provides an API service to convert the font [http://smc.org.in/silpa/ASCII2Unicode] But it says that "Silpa services can be used from any programming language which has an RPC implementation." can i access this service using PHP.

Thanks
Nikhil
vinumon
Forum Newbie
Posts: 1
Joined: Wed May 05, 2010 12:44 am

Re: Convert Malayalam font to unicode

Post by vinumon »

Hai

please change
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
to
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
krishnik
Forum Newbie
Posts: 9
Joined: Tue Dec 08, 2009 5:57 am

Re: Convert Malayalam font to unicode

Post by krishnik »

hi vinumon,

Thank you for the reply. but I have already tried the this.
I think the ML-TTKarthika is not a unicode font unlike Meera, which is used by Mathrubhumi. I can directly copy and pasted the content from mathrubhumi to a ms-word doc.
But if copy and paste the content from deepika which uses ML-TTKarthika all you get is junk characters.

In aksharangal.com there is an option to convert Ml-TTKarthika to unicode. I'm looking for something like that.

Thanks
Nikhil
Post Reply