TextView Android: special characters are not recognized -


i read txt document in particular folder of mobile; code read document:

public string read_file(string curfilename, string curfilepath) {          file file = new file(curfilepath,curfilename);          stringbuilder text = new stringbuilder();         try {               bufferedreader br = new bufferedreader(new inputstreamreader(new fileinputstream(file), charset.forname("utf-8")));                     string line;             while ((line = br.readline()) != null) {                 text.append(line+"\n");             }             br.close();         }         catch (ioexception e) {             //         }          textview tv = (textview)findviewbyid(r.id.dir);         tv.setmovementmethod(new scrollingmovementmethod());         tv.settext(text);         return text.tostring();     } 

however in textview special characters such ' , others not recognized. image:

http://postimg.org/image/j6sfzt4sh/


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -