If a Ruby string contains spaces and non-breaking spaces, and we don’t know which encoding was used to represent them, how can you convert all spaces (breaking and non-breaking) in the string to simple breaking spaces?
If a Ruby string contains spaces and non-breaking spaces, and we don’t know which
Share
Try
string.gsub("\u00A0", " ")