private String encodeTitleWikistyle(String pTitle){
  String encodedTitle=pTitle.replace(' ','_');
  return encodedTitle;
}

private String encodeTitleWikistyle ( String pTitle ) { String encodedTitle = pTitle . replace ( ' ' , '_' ) ; return encodedTitle ; }
encodes a plain title string to wiki - style . page titles in wikipedia are encoded in a way that urls containing the title are valid . title strings entered by users normally do not conform to this wiki - style encoding .
