Wednesday, June 15, 2016

php mysql to display telugu font

- in the table where telugu words need to be stored, u need to set coalition accordingly
ALTER TABLE <table_name> CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
- before executing insert/select query - mysql_query("SET NAMES utf8")
- put html header or php header to set charset to utf-8
- set charset to utf-8 on mysql connection

Tuesday, June 7, 2016

Spring external configuration

to provide a external config file (application.properties) when using spring boot, you should pass 'args' to SpringApplication.run() method.

will add a bit of code later.