References:
http://nobodycare.me/2014/11/07/android-studiode-common-questions/http://www.codegur.net/36027875/character-set-issue-utf-8
http://lifelongprogrammer.blogspot.tw/2014/05/powershell-and-java-stumble-by-utf8-bom.html
Scenario:
Import android project from Eclipse to Android Studio.Error message:
illegal character: '\ufeff'
Root cause:
The invisible prefix is \ufeff. U+FEFF is byte order mark (BOM).But java uses utf8 without bom to read file.
沒有留言:
張貼留言