In my android project, i want to read a data structure from file. A field suppose ‘name’, which has maximum of 32 chars. Most of the time ‘name’ field contains less than maximum limit. Some unwanted chars (i think ‘null’) is filled with data. i used ‘trim’ method to remove, but nothing happened. I need only valid data for processing, how can i solve this problem ?
Share
Use regular expression to replace non-printable characters.