Tuesday, June 19, 2012
Thursday, November 24, 2011
Sunday, May 22, 2011
How to identify File encoding in Java?

I have this error "cannot read the file xxxx.jsp" when i am accessing some jsp screen..
I am ran into this issue when try to access some jsp page in my project. I found that Input data was not encoded in UTF-8 but our default encoding on Windows was set to UTF-8.
I fixed the input data to be UTF-8 encoded. It works well.
You can either fix the input or change the default encoding to something else.
This is the useful info is
http://www-128.ibm.com/developerworks/java/jdk/linux/142/runtimeguide.lnx.en.html
If your system locale is using a UTF-8 encoding, some SDK tools might throw a sun.io.MalformedInputException. To find out whether your system is using a UTF-8 encoding, examine the locale-specific environment variables such as LANG or LC_ALL to see if they end with the suffix ".UTF-8". If you get this sun.io.MalformedInputException, change characters that are not within the 7-bit ASCII range (0x00 - 0x7f) and are not represented as Java Unicode character literals to Java Unicode character literals (for example: '\u0080'). You can also work around this problem by removing the ".UTF-8" suffix from the locale-specific environment variables; for example, if your machine has default locale of "en_US.UTF-8", set LANG to "en_US".
Sunday, May 8, 2011
SQL1092N "USER" does not have the authority to perform therequested command
1. Set the registry variable DB2_GRP_LOOKUP = local and add the domain accounts (or global groups) to the local Administrators group.
- db2set DB2_GRP_LOOKUP=local ?g
2. create new group ?DB2ADMNS?
3. Add both db2admin user and domain user into DB2ADMNS group
4.Update the database manager configuration file to specify a new group.
Db2 update dbm cfg using sysadm_group DB2ADMNS
5. db2stop
6. db2start
- db2set DB2_GRP_LOOKUP=local ?g
2. create new group ?DB2ADMNS?
3. Add both db2admin user and domain user into DB2ADMNS group
4.Update the database manager configuration file to specify a new group.
Db2 update dbm cfg using sysadm_group DB2ADMNS
5. db2stop
6. db2start
Sunday, March 27, 2011
Day 9 in Ho Chi Minh City
Wednesday, March 2, 2011
无奈
前天, 得知朋友的弟弟突如其来的死讯, 看到他这这几天几乎崩溃的心情, 我也深受其中.
一脸憔悴的样子, 好同情他.人生无常,世事难料.
这也许新年期间, 我的公公也刚刚过世, 我也比较容易伤感吧. 尤其是我们这些离乡背井的一群, 特没时间回去陪家人.
想起突然觉得很害怕,人生无常,世事难料,个中变化,全不由人,而生命却又是那么的脆弱,转眼间说不在就不在了,瞬间便已是阴阳相隔,再无相见之日
没人能有预知未来的本领,就算是大闹天宫的孙悟空,纵然他有72般变化,纵他有通天本领,还有经炼就的火眼金金,可他都不能预知取经路途将要面临什么样的妖精鬼怪,将要遇着怎样的灾难与困苦,更何况我们这些凡人呢?唯有祈求所有的人不管认不认识的,都能健康,都能平安,愿都能珍惜眼前的人,都珍惜眼前所拥有的一切
-------------------------------------------------------------------------------------
任你红尘滚滚,我自清风郎月。
一辈子做人,怎样算是做好了人?一辈子处世,怎么样算是成功的处世?
不如豁豁达达的心态,一切归于平静,一切就会平静。
人生在世,无非是让人笑笑,偶尔也笑笑别人。
曾经沧海之后,再去看世情,无非是云淡风清,不过是日升日落般的泰然了-
人生无常,世事难料,唯一一颗平静的心能抚平一切~
-------------------------------------------------------------------------------------
一脸憔悴的样子, 好同情他.人生无常,世事难料.
这也许新年期间, 我的公公也刚刚过世, 我也比较容易伤感吧. 尤其是我们这些离乡背井的一群, 特没时间回去陪家人.
想起突然觉得很害怕,人生无常,世事难料,个中变化,全不由人,而生命却又是那么的脆弱,转眼间说不在就不在了,瞬间便已是阴阳相隔,再无相见之日
没人能有预知未来的本领,就算是大闹天宫的孙悟空,纵然他有72般变化,纵他有通天本领,还有经炼就的火眼金金,可他都不能预知取经路途将要面临什么样的妖精鬼怪,将要遇着怎样的灾难与困苦,更何况我们这些凡人呢?唯有祈求所有的人不管认不认识的,都能健康,都能平安,愿都能珍惜眼前的人,都珍惜眼前所拥有的一切
-------------------------------------------------------------------------------------
任你红尘滚滚,我自清风郎月。
一辈子做人,怎样算是做好了人?一辈子处世,怎么样算是成功的处世?
不如豁豁达达的心态,一切归于平静,一切就会平静。
人生在世,无非是让人笑笑,偶尔也笑笑别人。
曾经沧海之后,再去看世情,无非是云淡风清,不过是日升日落般的泰然了-
人生无常,世事难料,唯一一颗平静的心能抚平一切~
-------------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)
Man Utd's next generation of wonderkids
Manchester United have set off on their pre-season United States tour with a number of young stars involved, but some other talents have lef...
-
My Team have won the best dressed Halloween competition for my company Halloween Annual Dinner last friday (2009-01-09). The winner prize is...
-
就让我为大家介绍一些这里的特色: 1. 泗里奎黄梨 泗里奎小镇对面岸的一个小岛,姆基湾多年来出产一种特种黄梨,当地人称她为泗里奎黄梨 (NENAS SARIKEI)。由于小岛土壤有限,泗里奎黄梨只够供应当地的市场,而没有外销,所以很多外地人都没有机会品尝到这种多汁的甜黄梨。目前这...
-
好 热的夜晚,没有一丝的风 又多蚊虫 不敢开窗换气 让人厌烦, 又是一个 难眠 的 夜晚 当结束一整天繁忙的工作时, 在静夜 惊醒时, 枕边已潮湿一片

