Sunday, August 28, 2005

Unicode enable Site -this is how it is done

Hi, today I try to make a site which support all characters set i.e. it is unicode enable So I go for this coding in PHP and it works fine for me to extract the data from mySql in unicode and than display the same in the Web Browser.. Put this in the HTML Head Section <meta equiv="content-type" content="text/html; charset=UTF-8"> And use this PHP Code to Extract the unicode from the Database <? $con=mysql_connect("localhost","root","") or print("DB connection fails"); $db=mysql_select_db("sumit_textbook") or print("DB db selection fails"); $query="SET NAMES 'utf8' "; $result=mysql_query($query); $query="SET CHARACTER_SET 'utf8'"; $result=mysql_query($query); $query="select * from t_IndPerson"; $result=mysql_query($query); while($row=mysql_fetch_array($result)) { print_r($row); } ?> Hope it help unicode enable site developers in future... At least it help me out a lot..:o) Bye Sumit gupta

Friday, August 26, 2005

Unicode - My Language

Hi, just looking for some Unicode resources I found these site useful A Hinid Editor For Every one http://www.geocities.com/matthewblackwell/hindiEditor.html and this Page is even more useful http://www-atm.physics.ox.ac.uk/user/iwi/charmap.html This Page will provide you more on my Lanuage Hindi http://www.sql-und-xml.de/unicode-database/devanagari.html All resource are good and belong to respective owners and I thanks them or such good resources.. So enjoy your own language bye Sumit Gupta

Friday, August 12, 2005

XML in .Net

Hi, Today I share my Experince with XML using .Net. I need to build a application in which I have some application specific configuration. In general we have Options 1) Either to Use ini files 2) Windows Registery 3) XML Files So I opt for XML as its something new for me. I get XML video form Microsoft site and it really help in using basic of XMLwriter and XMLreader Class included in .Net System namespace. At first its little hard to control the file using them but at last I made a required class that works in a similar way as the Windows API. Soon I will post that Class in my site http://www.vikasumit.com So Keep watching... till than Bye Sumit Gupta

Sunday, August 07, 2005

Google Ads are on my Blog

Hi, Nows its been 3-4 days since I publish Google Adsense in my blog in hope of getting some revenues. Just been a programmer My wish is it to see how it works more than money I can earn from this. But any thing that give you money is quite good.... Byeeee, Sumit Gupta