### [PhoneGap]InAppBrowser 預設url不支援utf8的解決辦法

function openBrowser(url){
var ref = window.open(url, '_blank', 'location=yes');
}

function openMap(address){
openBrowser(url);
}

function openBrowser(url){
var ref = window.open(encodeURI(url), '_blank', 'location=yes');
}
openBrowser(url);
}

 _blank new in-app browser instance _system system browser _self in current browser instance

## Specification

var ref = window.open( strUrl, strWindowName[, strWindowFeatures])

strUrl

• this is a url, prefixed with a scheme for external urls or a filename for urls that exist in the local www folder

strWindowName

• valid values are "_self", "_system", "_blank", or null. null is treated the same as "_self", any other value is treated as "_blank".
• "_self" -> opens in the Cordova WebView if strUrl is in the white-list, else it opens in the InAppBrowser
"_system" -> always open in the system web browser
"_blank" -> always open in the InAppBrowser

strWindowFeatures

• Optional parameter listing the features of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma. We only support the value below:
• location --> set to 'yes' or 'no' to turn the location bar on or off for the InAppBrowser

window.open returns an object that you can listen for three events on: "loadstart", "loadstop" and "exit", as well as call the "close()" function.