How to put space character into a string name in XML?

i have defined some strings in the strings.xml file. Now I need to put some extra space between some numbers in the string. When I type extra space characters this is not showing on the application though. Before: <string name=”spelatonertext3″>-4, 5, -5, 6, -6, And if I put extra space like this: <string name=”spelatonertext3″>-4, 5, … Read more

How to display hidden characters by default (ZERO WIDTH SPACE ie. &#8203)

I just lost part of my weekend because of this … joker – zero width space. I just used some snippets from google groups and didn’t recognize that there are doubled characters, because Idea (11) didn’t show them, which was causing problems with parsing config file of my app… I discovered it accidentally in vi. … Read more

Remove multiple whitespaces

I’m getting $row[‘message’] from a MySQL database and I need to remove all whitespace like \n \t and so on. $row[‘message’] = “This is a Text \n and so on \t Text text.”; should be formatted to: $row[‘message’] = ‘This is a Text and so on Text text.’; I tried: $ro = preg_replace(‘/\s\s+/’, ‘ ‘,$row[‘message’]); … Read more