non-breaking-spaces

How does copying and pasting non-breaking spaces compare in different systems/browsers?

Suppose you have an HTML document with non-breaking spaces ( ). In IE 6 - 8 running on Windows XP, when you select the non-breaking spaces and copy/paste them, they will be copied/pasted as "normal" spaces (U+0020). Does anyone know of any systems, browsers, etc., or combinations of, that will not exhibit this behavior. That is, th...

Convert non-breaking spaces to spaces in Ruby

I have cases where user-entered data from an html textarea or input is sometimes sent with \u00a0 (non-breaking spaces) instead of spaces when encoded as utf-8 json. I believe that to be a bug in Firefox, as I know that the user isn't intentionally putting in non-breaking spaces instead of spaces. There are also two bugs in Ruby, one o...

Remove non breaking space ( ) from between elements using jquery

How can I use jquery to remove non-breaking spaces (nbsp) which appear between html elements? So, for example, the following code is generated by a cms: <div><span>content</span>&nbsp;<span>content</span></div> I am able to target the elements using slectors. The following page suggests an answer to remove normal whitespace, but no...

Adding a line break to a UITextView

Hi I have a UITextView that takes an NSString with formating stringWithUTF8String. It is getting its values from a database and I want the text in the database to be rendered with breaks within the text. I tried using "\n" to do this but it gets rendered as text. Doing this in my information page of the app as straight text worked but I...