[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non breaking space replacement?
[Thread Prev] | [Thread Next]
- Subject: Re: Non breaking space replacement?
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sat, 6 Dec 2025 22:29:53 +0000
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
On Sat, 6 Dec 2025, 21:58 Lee, <t.lee.davidson@xxxxxxxxx> wrote:
> On 12/6/25 4:31 PM, Bruce Steers wrote:
> > Is there a simple way to replace all non breaking spaces in a string for
> normal spaces?
> > FromHtml does not work because there may also be < or > chars I do not
> want converted
> >
> > The string is otherwise fine,
> > It is Gambas code being passed from element.innerText (js) as a base64
> encoded uri query string.
> > On the Gambas side just FromBase64 decodes it okay apart from it has
> nbsp for spaces instead of just sp and it breaks things.
> >
> > I found a JavaScript way to do it client side but wondered if a there's
> simple Gambas way I haven't yet tried (I tried a few
> > things but no success)
> >
> > Tia
> > Respects
> > BruceS
>
> Replace("$nbsp;"," ") ?
>
>
> --
> Lee
>
No it's thate actual char.
I'm.at work now but just thought Replace(sTxt, Chr(160), " ") might work
>
| Non breaking space replacement? | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: Non breaking space replacement? | Lee <t.lee.davidson@xxxxxxxxx> |